Tuesday, August 25, 2015

Re: Using ModelForms

Noted.  "/stat/s" is an index page.  Here is what my urls.py looks like.  Also, by using print statements, I've realized that the request.method is always GET, not POST, which makes it so no model instance is ever saved.  What does this GET request refer to specifically?

Thanks






On Monday, August 24, 2015 at 3:29:40 PM UTC-7, Hugo Osvaldo Barrera wrote:
 
On Mon, Aug 24, 2015, at 16:41, Hugo Kitano wrote:
I'm actually now pretty certain that my html file is what's causing it to not work
 

 
Including your message as an inline image rather than simple text will reduce the amount of people that can actually read your message (and complicate following the thread).
 
Does "/stats/" point to the above mentioned view ("submit")? What does your urls.py look like? Did you try putting a "print" (or anything alike) into the view function to really make sure it's the one being called?
 
--
Hugo Osvaldo Barrera
 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fa0965d5-6286-41e3-b408-3ddf2f42664c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment