You are not logged in.

Change Language:

Profile for django-man

Name django-man
Email Address hidden
AvatarUsers avatar
Posts9
  • Re: Hello Admin
    Board » Django Standard Library » Comments
    I love django too. Lets all start talking.. :)

    But then again there are not too many question that I have had to ask about django that I haven't figured out on my own in short order. So I can see why there aren't too many people here.

    Please everyone who reads this come back and talk.
  • Re: Linking between views without absolute URLs
    Board » Django » Views
    Django provides this functionality. Look on the documentation pages under URL's. Here is a clip..

    from django.core.urlresolvers import reverse
    
    def myview(request):
        return HttpResponseRedirect(reverse('arch-summary', args=1945))
    


    Where 'arch-summary' would be the name of the view function call. the reverse() function generates the url that is necessary to call the view even if it changes.
  • Re: accessing field property parameters
    Board » Django » Models
    Django provides a forms class that builds directly from what is specified in the model.

    Inspect their code for that functionality and see what you come up with.

    Look around and you should be able to find the automatic forms class.
  • I love Django
    Board » General Category » General Discussion
    Just wanted to say that.... I've been with Django for 1.5 years now. A google video enticed me to try it. And I don't regret any of it.

    Thanks Alan and Jacob and all the others who contributed their time to Django. I have looked at the comeptition and you guys have the design that rocks. I love you guys.
  • Re: Creating a Photo gallery/album in django
    Board » Django » Python Programming
    hello,

    The Django-hotclub of France may have a photo album gallery. there is a directory called Photologue but I haven't investigated it. They call this the pinax project. You should look into it. There is alot of activitity and it has progressed rapidly.

  • Re: Welcome to the Django Forum
    Board » General Category » General Discussion
    Hello All,

    I seen the google video for Django last year and fell in love with it. I had spent one year programming php and was ready to pull my hair out. So I learned python and django in a month and rebuilt more functionality than a year of php programming and I was impressed.

    I hope this forum becomes a place to meet. Maybe we can share tips and tricks.

    Scott
  • A quick method for displaying forms in templates.
    Board » Django » Templates
    I was trying to find a way to print pretty 2 column forms in html without hard coding each line.

    What I want is a table with <tr><td>label:</td><td> textinput</td><td>label:</td><td>textinput</td></tr>

    If I loop through the form class in the template I get one straight list.

    I cannot think of a way to make this work in the templates.

    Thanks
  • Re: Admin Relational Model Errors On Update
    Board » Django » Models
    I figured it out. Here is the solution.

    The related model that is being displayed inline must not have default values for only some of the required fields. (v0.96) The admin was displaying the related db model with the default values for the one field and the other field in the model was blank as it had no default.

    So it was not the auto_now_add date column after all.

    Get rid of the default values, or possibly make defaults for all, if there is ever a problem.
    ;D
  • Admin Relational Model Errors On Update
    Board » Django » Models
    I have run into this problem several times while using the django admin to do work for me. An auto_now_add column on the related item which is being displayed inline.TABULAR returns this error on update.

    Data truncated; NULL supplied to NOT NULL column 'entry_date' at row 1

    Anybody else ran into this problem?



Powered by Sphene Community Tools