django-views
In Django how can I create a user and a user profile at the same time from a single form submission
I am using extended version of the UserCreationForm to add users via my own template, which is working well.[详细]
2023-04-08 20:13 分类:问答django - what's the proper way of passing the "request" parameter to a custom template tag
I created a custom template tag that I want to use on every page on my web site.I have a function get_ip inside the custom template tag that needs the request parameter in order to get the IP address[详细]
2023-04-08 17:36 分类:问答Django template get custom attribute from request OR "refresh" radio buttons
I currently have a template containing an html form, with the lines: {% for r in q1.responseoption_set.all %}[详细]
2023-04-08 15:17 分类:问答Django planmember_set issue
I have a question that I hope someone can help me with.I\'m using a form to have the user select a \"plan\".Now I want to list all the members in the plan, in the form.I have a function \'get_owners\'[详细]
2023-04-08 03:34 分类:问答django save data in database only when certain conditions are met
I have a python function that scrapes some data from a few di开发者_StackOverflow社区fferent websites and I want to save that data into my database only if a certain condition is met.Namely, the scrap[详细]
2023-04-07 07:24 分类:问答No module named registro.forms in my own local django server [edited]
im setting Django Server in my Ubuntu machine, apache/wsgi, but im getting a error in my view: was No module named registro.formsnow after some code in my wsgi is No module name forms[详细]
2023-04-07 05:32 分类:问答django render_to_string not working
I am trying to implement an ajax view to create an object and then return it and insert it into the template. It is almost working except I cannot seem to get render_to_string() to work to render the[详细]
2023-04-06 22:51 分类:问答django's DateField model field and acceptable values
I\'m having a bit of trouble with django\'s DateField model field.Shouldn\'t it be able to accept fiveDaysLater as a valid date object?When I try to add fiveDaysLater into the database, I get an error[详细]
2023-04-06 22:09 分类:问答Django how to achieve wizard-like flow from one view to another
I have a django website with a registration page. When the user hits the submit button (on /register), I want to validate in the same view (/register). When it does work, I want the user to be taken[详细]
2023-04-06 09:49 分类:问答django1.3 static file problem
hi, I am new to django,I doing user authentication for my project,Well its works properly. I have created a folder named \'static\' in my projects root folder[now am in local devlopment] and necessary[详细]
2023-04-06 09:29 分类:问答