Re: Why does django throw TypeError when sending requests through Apache WSGI?

2021-12-15 Thread Kyle Paterson
Used libapache2-mod-wsgi-py3 instead of python 2 version On Wednesday, 15 December 2021 at 10:03:27 UTC Kyle Paterson wrote: > I am not using either of those, I think. The only place I explicitly load > settings is in wsgi.py, with the line: > os.environ[‘DJANGO_SETTINGS_MODULE’] = ‘travel

Re: Why does django throw TypeError when sending requests through Apache WSGI?

2021-12-15 Thread Kyle Paterson
I am not using either of those, I think. The only place I explicitly load settings is in wsgi.py, with the line: os.environ[‘DJANGO_SETTINGS_MODULE’] = ‘travel data.settings' On Thu, 9 Dec 2021 at 12:52, Jason wrote: > > with your settings usage, are you defining a property in settings and >

Re: Why does django throw TypeError when sending requests through Apache WSGI?

2021-12-09 Thread Jason
with your settings usage, are you defining a property in settings and trying to use it anywhere? furthermore, are you using settings via from traveldata.traveldata import settings (example) or via from django.conf import settings The latter is the recommended means because settings are

Re: Why does django throw TypeError when sending requests through Apache WSGI?

2021-12-08 Thread Sencer Hamarat
Hi, I think this is not related with apache It seems like class object property is called as a method somehow. Unfortunately the error does not reveal the property name. Regards, Sencer HAMARAT On Wed, Dec 8, 2021 at 4:59 PM Kyle Paterson wrote: > Started a new project after not using

Re: Why some Django fields are not saved in database?

2018-06-21 Thread prateek gupta
Thanks for sharing this, I will do the same first. On Thursday, June 21, 2018 at 5:55:42 PM UTC+5:30, Melvyn Sopacua wrote: > > On donderdag 21 juni 2018 11:31:26 CEST prateek gupta wrote: > > > > > Thanks for reviewing the code. > > > > > > I am new to Django and just tried to put logic from

Re: Why some Django fields are not saved in database?

2018-06-21 Thread Melvyn Sopacua
On donderdag 21 juni 2018 11:31:26 CEST prateek gupta wrote: > Thanks for reviewing the code. > > I am new to Django and just tried to put logic from googling to achieve my > goal. > That's why I don't understand my code completely. Try to understand it before applying. The main issue you're

Re: Why some Django fields are not saved in database?

2018-06-21 Thread prateek gupta
Thanks for reviewing the code. I am new to Django and just tried to put logic from googling to achieve my goal. That's why I don't understand my code completely. Can you please point out where I am doing this and how can I change this behaviour? On Thursday, June 21, 2018 at 2:48:46 PM

Re: Why some Django fields are not saved in database?

2018-06-21 Thread Melvyn Sopacua
On donderdag 21 juni 2018 10:42:09 CEST prateek gupta wrote: > Issue is in database , latitude/longitude values are blank. > > What I am doing wrong here? Why do you not understand your own code? How did you get that code - you explicitly code it so that it they do NOT end up in the database.

Re: Why doesn't Django support managing Raw SQL changes using migration system like models

2018-02-28 Thread Julio Biason
Hi Cmp, Well, Django has to be database agnostic for things to work with any database. If raw sql is allowed, how do you can be sure it will work with any database? So far, you mentioned a bunch of PostreSQL things. But what if, tomorrow, some higher ups decided that support is required and buy

Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-30 Thread ankita gupta
On Wednesday, 29 November 2017 08:24:26 UTC+5:30, Tom Tanner wrote: > > My `forms.py` looks like this. (I want user's email to be their login > username. > from django.utils.translation import ugettext_lazy as _ > > from django import forms > from django.contrib.auth.forms import

Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-30 Thread Matemática A3K
Tom, - You shouldn't use Model=User (or the Meta) as it was a ModelForm, it is just a regular Form - AuthenticationForm takes request as its first parameter: def login_register(request, template="templates/login_register.html"): if request.method == "POST": login_form =

Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-29 Thread Tom Tanner
I removed that line, but nothing changed. On Wednesday, November 29, 2017 at 11:58:28 PM UTC-5, Matemática A3K wrote: > > > > On Thu, Nov 30, 2017 at 12:35 AM, Tom Tanner > wrote: > >> What would I need to change? >> >> I tried changing the ... >> fields= ("username",)

Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-29 Thread Matemática A3K
On Thu, Nov 30, 2017 at 12:35 AM, Tom Tanner wrote: > What would I need to change? > > I tried changing the ... > fields= ("username",) > > ... to ... > fields= ("username","email",) > or... > fields= ("email",) > > Nothing seemed to change. the

Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-29 Thread Tom Tanner
What would I need to change? I tried changing the ... fields= ("username",) ... to ... fields= ("username","email",) or... fields= ("email",) Nothing seemed to change. the `login_form.is_valid()` still is `False`. Sorry if the question is dumb, I'm still learning Django thru working with it.

Re: Why does Django say my login form is invalid? How can I find out why Django thinks it is?

2017-11-28 Thread Matemática A3K
> class LoginForm(AuthenticationForm): > username= forms.EmailField(label=_("Email"), max_length=254) > > > class Meta: > model= User > > > fields= ("username",) > > If you use "fields = ("username")" you are restricting the fields to just that field, and the authentication form needs also

Re: Why in Django the field IntegerRangeField not worked with None?

2016-06-16 Thread Sergiy Khohlov
Look like it is expected behaviour. filter builds sql, any sql should have sence. What is sence with broken sql ? Many thanks, Serge +380 636150445 skype: skhohlov On Wed, Jun 15, 2016 at 1:09 PM, Seti Volkylany wrote: > The model next: > > class

Re: Why does Django allow Circular Model Relation

2016-02-19 Thread Alex Heyden
You would use it any time the relationship means something different. It would generally be inappropriate to use it as a simple backwards relationship (Django does this for you), but there's no reason not to have multiple relationships in a number of directions. In an HR system, someone could be

Re: Why does Django allow Circular Model Relation

2016-02-19 Thread Tim Chase
On 2016-02-19 07:29, Eddilbert Macharia wrote: > Hello vadim when would such a relationship be needed I'm curious Think of a hierarchy at a company. Most employees have a supervisor. So your table would reference the supervisor in the same table: class Employee(models.Model): name = ...

Re: Why does Django allow Circular Model Relation

2016-02-19 Thread Eddilbert Macharia
Hello vadim when would such a relationship be needed I'm curious -- 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+unsubscr...@googlegroups.com. To

Re: Why does Django allow Circular Model Relation

2016-02-19 Thread Vadim Serdiuk
Why should it be complained? I know a lot of the same cases that may be applied. пятница, 19 февраля 2016 г., 15:00:12 UTC+2 пользователь Eddilbert Macharia написал: > > Hello All, > > I was working on a project, and realized that Django does not complain > when you create Circular Model

Re: Why does Django allow Circular Model Relation

2016-02-19 Thread Javier Guerra Giraldez
On 19 February 2016 at 13:00, Eddilbert Macharia wrote: > Hello All, > > I was working on a project, and realized that Django does not complain when > you create Circular Model relationship even when creating migrations where i > expected to have this complain why would it

Re: Why does django use mysqldb over mysql-connector?

2014-11-05 Thread Collin Anderson
Hello, > https://github.com/PyMySQL/mysqlclient-python > > I didn't tried that. Someone use it? > I use it. There's a thread about it on django-developers. https://groups.google.com/d/topic/django-developers/n-TI8mBcegE/discussion Collin -- You received this message because you are

Re: Why does django use mysqldb over mysql-connector?

2014-11-04 Thread Larry Martell
Yes, thanks for the link. For some reason google wasn't finding that for me. On Tue, Nov 4, 2014 at 6:59 AM, wrote: > > Are you talking about this? > > https://github.com/PyMySQL/mysqlclient-python > > I didn't tried that. Someone use it? > > > Em terça-feira, 4 de novembro de

Re: Why does django use mysqldb over mysql-connector?

2014-11-04 Thread lzanuz
Are you talking about this? https://github.com/PyMySQL/mysqlclient-python I didn't tried that. Someone use it? Em terça-feira, 4 de novembro de 2014 09h08min38s UTC-2, larry@gmail.com escreveu: > > What about mysqlclient? The django site says that is "the recommended > choice for using

Re: Why does django use mysqldb over mysql-connector?

2014-11-04 Thread Larry Martell
What about mysqlclient? The django site says that is "the recommended choice for using MySQL with Django" but I can't seem to find that package. Does anyone have a link for that? On Mon, Nov 3, 2014 at 8:57 PM, wrote: > > Hi all, > > I notice that python-mysql-connector(1) is

Re: Why does django use mysqldb over mysql-connector?

2014-11-03 Thread lzanuz
Hi all, I notice that python-mysql-connector(1) is almost 30% slow that MySQLdb(2), but MySQLdb until now not support python3. Anyone have news when MySQLdb will support python 3 or know another connector for mysql? It's a litte confused at this time, because we have django1.7.X that

Re: why does django user require create database privlages for testing

2014-04-23 Thread Alex Mandel
If you don't want to setup a test db with permissions for a test app, use sqlite. I can't see why you'd ever want to give your web app carte blanc permissions to run all over your db server. Seems to me "you create a test database as super user" is the same as changing to a db admin user,

Re: why does django user require create database privlages for testing

2014-04-23 Thread Bill Freeman
Because virtually all of us don't want our production database used for testing. On Wed, Apr 23, 2014 at 4:18 PM, dacresni wrote: > Rails doesn't require this, you create a test database as super user and > it uses it for testing. Why doesn't django allow this? > > -- >

Re: Why doesn't Django support subdomain url conf?

2012-06-17 Thread Alireza Savand
Thank you Rafał, it's useful. But it's will be reasonable if django own subdomains built-in. On Saturday, June 16, 2012 6:04:36 PM UTC+4, Rafał Stożek wrote: > > You may want to take a look at this project: > https://github.com/ennio/django-hosts > > On Saturday, June 16, 2012 1:48:16 PM UTC+1,

Re: Why doesn't Django support subdomain url conf?

2012-06-16 Thread Timothy Makobu
+1 django-hosts worked very well for me. On Sat, Jun 16, 2012 at 5:04 PM, Rafał Stożek wrote: > You may want to take a look at this project: > https://github.com/ennio/django-hosts > > > On Saturday, June 16, 2012 1:48:16 PM UTC+1, Alireza Savand wrote: >> >> Have extremely

Re: Why doesn't Django support subdomain url conf?

2012-06-16 Thread Rafał Stożek
You may want to take a look at this project: https://github.com/ennio/django-hosts On Saturday, June 16, 2012 1:48:16 PM UTC+1, Alireza Savand wrote: > > Have extremely control on URLs with django is easy as possible. > > But why there is nothing about handling subdomains url configration, all i

Re: Why doesn't Django support subdomain url conf?

2012-06-16 Thread Alireza Savand
i don't think we can say that, cause instead of handling url in urls.conf, we could done that in .htaccess or as you said in WebServer configuration. On Sat, Jun 16, 2012 at 5:21 PM, Daniel Roseman wrote: > On

Re: Why doesn't Django support subdomain url conf?

2012-06-16 Thread Daniel Roseman
On Saturday, 16 June 2012 13:48:16 UTC+1, Alireza Savand wrote: > > Have extremely control on URLs with django is easy as possible. > > But why there is nothing about handling subdomains url configration, all i > found it was >

Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread john2095
My frustration was borne by the ease with which Debian makes the task: I did expect the job to be an insignificant one-line command. Thanks Tom. Apple don't see a profit in providing a mysql-client package. Ramiro has a point that lobbying MySQL for a client-only OSX package is a righteous

Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread Tom Evans
On Fri, May 4, 2012 at 2:18 AM, john2095 wrote: > I've just been through a slice of hell simply because I did not want to > install mysql-server on my (osx) django development machine - my app > connects to a remote mysql database.  It turns out that python's "mysqldb" >

Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread Ramiro Morales
On Thu, May 3, 2012 at 10:18 PM, john2095 wrote: > I've just been through a slice of hell simply because I did not want to > install mysql-server on my (osx) django development machine - my app > connects to a remote mysql database.  It turns out that python's "mysqldb" >

Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread Masklinn
On 2012-05-04, at 09:36 , john2095 wrote: > Oh. Thanks Kurtis. That answers the first question: it's built on mysqldb > primarily because it's mature and stable. Thanks. > > As for the second question: has anyone tried building a backend on > mysql-connector yet? Silence? Is this an

Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread john2095
Oh. Thanks Kurtis. That answers the first question: it's built on mysqldb primarily because it's mature and stable. Thanks. As for the second question: has anyone tried building a backend on mysql-connector yet? Silence? Is this an opportunity? On Friday, 4 May 2012 16:53:43 UTC+10, Kurtis

Re: Why does django use mysqldb over mysql-connector?

2012-05-04 Thread Kurtis Mullins
I think what he was trying to get at is that the Python MySQL Adapter is in early stages of development where-as Django is depended upon to be a very stable platform/framework. It would be great to have the option to use that adapter though for situations like yours. On Fri, May 4, 2012 at 1:21

Re: Why does django use mysqldb over mysql-connector?

2012-05-03 Thread john2095
Yes, that's the pure python adapter I'm talking about. I think that's effectively the same as this one. Nice link but I'm not sure if you're suggesting that as additional information or an answer? The question remains is a compelling reason

Re: Why does django use mysqldb over mysql-connector?

2012-05-03 Thread Steve McConville
> Has this happened by default or by design?  Is mysqldb really that much > faster, or featureful, or just because it's more common? >From http://forge.mysql.com/projects/project.php?id=302 "Development Status: Early (Pre-Alpha)" -- steve -- You received this message because you are

Re: Why does django default to Chicago time?

2012-02-15 Thread Mario Gudelj
I believe that people who created Django are from there. :) On 16 February 2012 14:46, Roy Smith wrote: > In the default settings.py file, the timezone is set to: > > TIME_ZONE = 'America/Chicago' > > Why? Wouldn't None (to match the server's time zone) be a more sane >

Re: Why does Django create Postgres timestamp columns with time zones?

2011-11-12 Thread Kevin
>From >postgresql.org/docs/8.4/static/datatype-datetime.html: > "All timezone-aware dates and times are stored internally in UTC. They are converted to local time in the zone specified by the timezone configuration parameter

Re: Why does Django create Postgres timestamp columns with time zones?

2011-11-12 Thread K.C. Smith
It's not required by PostgreSQL. See, http://www.postgresql.org/docs/8.4/interactive/datatype-datetime.html , for example. You may be able to change the data type of that column directly in the database. (See http://www.postgresql.org/docs/8.4/interactive/ddl-alter.html#AEN2595 .) Maybe

Re: Why is django-registration 0.8 not on PyPI?

2011-05-18 Thread creecode
Hello Ram, James Bennett would be the final authority on that question. Perhaps because it's not actually been released as 0.8? It appears to be in alpha stage. Toodle-l... creecode -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Why does Django Fail on Date Field?

2011-03-11 Thread octopusgrabbus
I could easily have used the Informix "null" date of 12/31/1899, but chose that instead. I put the dates into a table, so when they were processed they'd be set to a real date, today's. On Mar 11, 7:39 am, Kenneth Gonsalves wrote: > On Fri, 2011-03-11 at 04:28 -0800,

Re: Why does Django Fail on Date Field?

2011-03-11 Thread Kenneth Gonsalves
On Fri, 2011-03-11 at 04:28 -0800, octopusgrabbus wrote: > It's a date format MySQL will accept into a date field. I suppose it can be used for recording Adam's date of birth? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this

Re: Why does Django Fail on Date Field?

2011-03-11 Thread octopusgrabbus
It's a date format MySQL will accept into a date field. On Mar 10, 8:07 pm, Kenneth Gonsalves wrote: > On Thu, 2011-03-10 at 09:46 -0800, octopusgrabbus wrote: > > load_date = '-00-00' > > what on earth is this? > -- > regards > KGhttp://lawgon.livejournal.com >

Re: Why does Django Fail on Date Field?

2011-03-10 Thread Kenneth Gonsalves
On Thu, 2011-03-10 at 09:46 -0800, octopusgrabbus wrote: > load_date = '-00-00' what on earth is this? -- regards KG http://lawgon.livejournal.com Coimbatore LUG rox http://ilugcbe.techstud.org/ -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Why does Django Fail on Date Field?

2011-03-10 Thread octopusgrabbus
I converted my date, and it all works fine. Thanks for your help. On Mar 10, 12:54 pm, Tom Evans wrote: > On Thu, Mar 10, 2011 at 5:46 PM, octopusgrabbus > > > > wrote: > > I'm confused as to how this code isn't using the model? > > > Here's

Re: Why does Django Fail on Date Field?

2011-03-10 Thread Tom Evans
On Thu, Mar 10, 2011 at 5:46 PM, octopusgrabbus wrote: > I'm confused as to how this code isn't using the model? > > Here's the model I'm using. The table is in a MySQL database. > class CsRemove(models.Model): >    action = models.CharField(max_length=3,

Re: Why does Django Fail on Date Field?

2011-03-10 Thread Jirka Vejrazka
Will this answer your question? >>> import datetime >>> datetime.datetime(year=, month=00, day=00) Traceback (most recent call last): File "", line 1, in ValueError: year is out of range Jirka -- You received this message because you are subscribed to the Google Groups "Django

Re: Why does Django Fail on Date Field?

2011-03-10 Thread octopusgrabbus
I'm confused as to how this code isn't using the model? Here's the model I'm using. The table is in a MySQL database. class CsRemove(models.Model): action = models.CharField(max_length=3, db_column='Action') # Field name made lowercase. endpointid = models.IntegerField(primary_key=True,

Re: Why does Django Fail on Date Field?

2011-03-10 Thread Tom Evans
On Thu, Mar 10, 2011 at 5:31 PM, octopusgrabbus wrote: > The code's in the last post. What other code would you like to see? > If you'd like help, please reply to the list, not to me directly. Thanks. *Some* code is in the post. Your problem is that you are formatting

Re: Why does Django Fail on Date Field?

2011-03-10 Thread Tom Evans
On Thu, Mar 10, 2011 at 3:18 PM, octopusgrabbus wrote: > Could my problem be related to the fact that my views.py module first > performs a get (sql select) on the table in question, and if the > record is > not there, then inserts it? No, it's probably because you are

Re: Why does Django Fail on Date Field?

2011-03-10 Thread octopusgrabbus
Could my problem be related to the fact that my views.py module first performs a get (sql select) on the table in question, and if the record is not there, then inserts it? try: temp_ept_id = CsRemove.objects.get(endpointid=requested_serial_number)

Re: Why does Django Fail on Date Field?

2011-03-09 Thread octopusgrabbus
This is a MySQL 5.0+ database. I can manually insert using Query Browser. On Mar 8, 12:34 pm, octopusgrabbus wrote: > Sorry. The error is Exception Type: > ValidationError > Exception Value: > [u'Enter a valid date in -MM-DD format.'] > > I have printed out for

Re: Why does Django Fail on Date Field?

2011-03-08 Thread octopusgrabbus
Sorry. The error is Exception Type: ValidationError Exception Value: [u'Enter a valid date in -MM-DD format.'] I have printed out for myself to prove that my date is in this format. On Mar 8, 8:24 am, Jirka Vejrazka wrote: > Well, we're missing the bit where you

Re: Why does Django Fail on Date Field?

2011-03-08 Thread Jirka Vejrazka
Well, we're missing the bit where you tell us what error are you getting. I don't know about others, but my crystal ball is a bit dusty these days. The models.py snippet you posted is obvious result of inspectdb output, which *may* need some manual tweaking. But it's difficult for us to guess as

Re: Why not Django with FastCGI?

2010-04-21 Thread Tom Evans
On Wed, Apr 21, 2010 at 3:08 AM, Sven Svenson wrote: > I'm new to the Django world but it seems that FastCGI is not the > preferred way to deploy a Django application. Why is that? I've had > good success using FastCGI with Perl/Catalyst-based applications. > > Thanks. > >

Re: Why is django returning only naive datetimes?

2010-04-12 Thread David De La Harpe Golden
On 09/04/10 19:05, Paweł Roman wrote: I've noticed that django always fetches 'naive' datetimes from the database. Tzinfo property on a datetime object is always set to null, even if the database stores a value WITH a timezone. This is a bit tedious because such datetime cannot be later

Re: Why is django returning only naive datetimes?

2010-04-09 Thread Tom X. Tobin
On Fri, Apr 9, 2010 at 2:48 PM, Ramiro Morales wrote: > On Fri, Apr 9, 2010 at 3:20 PM, Tom X. Tobin wrote: >> >> This reminds me that we need to open-source our time zone code.  We >> track entertainment events across several time zones, and Django's

Re: Why is django returning only naive datetimes?

2010-04-09 Thread Ramiro Morales
On Fri, Apr 9, 2010 at 3:20 PM, Tom X. Tobin wrote: > > This reminds me that we need to open-source our time zone code.  We > track entertainment events across several time zones, and Django's > standard time handling can't cleanly deal with that.  Database > backends

Re: Why is django returning only naive datetimes?

2010-04-09 Thread Paweł Roman
> This reminds me that we need to open-source our time zone code.  We > track entertainment events across several time zones, and Django's > standard time handling can't cleanly deal with that.  Database > backends that store time zones as a UTC offset (e.g., PostgreSQL) > actually cause *more*

Re: Why is django returning only naive datetimes?

2010-04-09 Thread Tom X. Tobin
On Fri, Apr 9, 2010 at 1:05 PM, Paweł Roman wrote: > I've noticed that django always fetches 'naive' datetimes from the > database. Tzinfo property on a datetime object is always set to null, > even if the database stores a value WITH a timezone. > > This is a bit

Re: Why does Django think my browser doesn't except cookies?

2009-10-28 Thread philip.bar...@impaerospace.com
Starting with that premise, I looked into what circumstances lead to IE rejecting cookies unread. As it turned out, the VM System clock was six weeks behind the times and IE was throwing out what appeared to be six week old cookies. After adjusting the VM system clock the problem went away.

Re: Why does Django think my browser doesn't except cookies?

2009-10-27 Thread Grant Livingston
I wouldn't be surprised if this is a bug in IE =/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this

Re: Why doesn't Django display template line number of errors?

2009-10-07 Thread Karen Tracey
On Wed, Oct 7, 2009 at 5:38 PM, NealWalters wrote: > > Any ideas on this question from about a month ago? > It was answered. Django does display the line number, along with the line in error and surrounding lines, in the Django debug page. If Google App Engine

Re: Why doesn't Django display template line number of errors?

2009-10-07 Thread NealWalters
Any ideas on this question from about a month ago? Thanks, Neal --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe

Re: Why doesn't Django display template line number of errors?

2009-09-11 Thread NealWalters
Maybe on Google App Engine there is no error line? Here's an example of an "endif" insteaf of an "endifequal". Neal Traceback (most recent call last): File "c:\Program Files\Google\google_appengine\google\appengine\ext \webapp\__init__.py", line 501, in __call__ handler.get(*groups)

Re: Why doesn't Django display template line number of errors?

2009-09-10 Thread Tim
It does show line numbers. Scroll down past the yellow section on the error page, and it will show you the line numbers, the line with the error, and the lines surrounding it. It should also say something like "In template /Users/tim/Sites/ website/templates/base.html, error at line 73"

Re: Why does django add settings to be part of my urls and then give me a reverse url lookup error?

2009-04-18 Thread Aaron
here is the html: {% extends 'root.html' %} {% block selective-panel %} {% endblock %} {% block navigation %} Sign Up Testimonials Save Now Free Services {% endblock %} {% block panel %} {% block content %}{% endblock %} {% ifequal

Re: Why does django add settings to be part of my urls and then give me a reverse url lookup error?

2009-04-18 Thread Aaron
ok, here is the url stuff: from django.conf.urls.defaults import * urlpatterns = patterns('contact.views', url(r'^consultation-request/$', 'consultation_request', name='contact-consultation-request'), ) the top is the url.py thats in a folder called contact. here is the main url.py - #

Re: Why does django add settings to be part of my urls and then give me a reverse url lookup error?

2009-04-18 Thread R. Gorman
Your likelihood in resolving this issue would be much higher if you include your code (urls.py, form html, etc.) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: Why does django add settings to be part of my urls and then give me a reverse url lookup error?

2009-04-18 Thread Karen Tracey
On Sat, Apr 18, 2009 at 2:34 PM, Aaron wrote: > > Hi, I get this annoying error. > > Here is the error: > > : Caught an exception > while rendering: Reverse for 'settings.contact-consultation-request' > with arguments '()' and keyword arguments '{}' not found. [snipped

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-25 Thread Graham Dumpleton
On Sep 25, 10:58 am, shacker <[EMAIL PROTECTED]> wrote: > On Sep 24, 4:34 pm, Graham Dumpleton <[EMAIL PROTECTED]> > wrote: > > > If however you have used in Apache configuration the ErrorDocument > > directive for 404 at some point, possibly by enabling multi language > > custom error

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-24 Thread shacker
On Sep 24, 4:34 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > If however you have used in Apache configuration the ErrorDocument > directive for 404 at some point, possibly by enabling multi language > custom error documents, then when the 404 occurs, rather than > returning an internally

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-24 Thread Graham Dumpleton
On Sep 25, 7:38 am, Ross Dakin <[EMAIL PROTECTED]> wrote: > Graham, > > I am using Apache andmod_wsgi, and I have experienced that issue > before (500 errors for 404, et al.). > > I fixed it with some tinkering, but don't remember how.  Would you > mind explaining this problem a little? Consider

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-24 Thread Ross Dakin
Graham, I am using Apache and mod_wsgi, and I have experienced that issue before (500 errors for 404, et al.). I fixed it with some tinkering, but don't remember how. Would you mind explaining this problem a little? Thanks, Ross On Sep 23, 5:08 pm, Graham Dumpleton <[EMAIL PROTECTED]>

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Graham Dumpleton
How are you hosting Django? It would help to know if you are using builtin development server or whether you are hosting under Apache using mod_python or mod_wsgi. If under Apache then use of certain Apache configuration settings can cause 500 errors to be returned instead of 404 errors. No point

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Ramiro Morales
On Tue, Sep 23, 2008 at 1:36 PM, h <[EMAIL PROTECTED]> wrote: > > I suspect you have something like this in your urls.py and your static > media is not being served > > > if not settings.DEBUG: >urlpatterns += patterns('',(r'^media/(.*)$', > 'django.views.static.serve', {'document_root':

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread h
I suspect you have something like this in your urls.py and your static media is not being served if not settings.DEBUG: urlpatterns += patterns('',(r'^media/(.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),) On Sep 23, 5:29 pm, "Karen Tracey" <[EMAIL

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 12:14 PM, Huuuze <[EMAIL PROTECTED]> wrote: > > There are no tracebacks in this instance. I can see the non-descript > 500 errors appearing in my terminal window. > I don't understand. Are you saying you have configured ADMINS, etc. in settings.py so that 500 error

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Huuuze
There are no tracebacks in this instance. I can see the non-descript 500 errors appearing in my terminal window. On Sep 23, 12:06 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Tue, Sep 23, 2008 at 11:53 AM, Huuuze <[EMAIL PROTECTED]> wrote: > > > I'm preparing to deploy my Django app and I

Re: Why does Django generate HTTP 500 errors for static media when Debug is set to False?

2008-09-23 Thread Karen Tracey
On Tue, Sep 23, 2008 at 11:53 AM, Huuuze <[EMAIL PROTECTED]> wrote: > > I'm preparing to deploy my Django app and I noticed that when I change > the "DEBUG" setting to False, all references to static files (i.e., > JavaScript, CSS, etc..) result in HTTP 500 errors. > > Any idea what's causing

Re: why my django site doesn't create .pyc file?

2008-06-09 Thread Jeff Anderson
Scott Moonen wrote: >> I think this way, apache could be a little more faster. Am I right? >> >> > > I don't think it will be faster. Django normally runs as a long-standing > process (either inside Apache or as a standalone process, depending on the > deployment model you've chosen). So,

Re: why my django site doesn't create .pyc file?

2008-06-09 Thread pength
Tim and Scott, thank you very much! On Jun 9, 10:03 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > >> I think this way, apache could be a little more faster. Am I > >> right? > > > I don't think it will be faster. Django normally runs as a > > long-standing process (either inside Apache or as a

Re: why my django site doesn't create .pyc file?

2008-06-09 Thread Tim Chase
>> I think this way, apache could be a little more faster. Am I >> right? > > I don't think it will be faster. Django normally runs as a > long-standing process (either inside Apache or as a standalone > process, depending on the deployment model you've chosen). > So, unlike ordinary CGI

Re: why my django site doesn't create .pyc file?

2008-06-09 Thread Scott Moonen
> > I think this way, apache could be a little more faster. Am I right? > I don't think it will be faster. Django normally runs as a long-standing process (either inside Apache or as a standalone process, depending on the deployment model you've chosen). So, unlike ordinary CGI scripts, your

Re: why my django site doesn't create .pyc file?

2008-06-09 Thread pength
Thanks a lot ! I changed the user information in apache2's conf file, and now it's OK! I think this way, apache could be a little more faster. Am I right? On 6月9日, 下午7时39分, "Valts Mazurs" <[EMAIL PROTECTED]> wrote: > Hello, > > Check if web server process has enough privileges to write in the

Re: why my django site doesn't create .pyc file?

2008-06-09 Thread Valts Mazurs
Hello, Check if web server process has enough privileges to write in the directories containing .py files. Regards, Valts. On Mon, Jun 9, 2008 at 1:25 PM, pength <[EMAIL PROTECTED]> wrote: > > I have justed built my site on slicehost. Alhough my site is running > properly, I found if I update

Re: why does django display th/td:hover style incorrectly ?

2007-03-15 Thread OudS
On 3月14日, 下午7时43分, Steven Armstrong <[EMAIL PROTECTED]> wrote: > Aidas Bendoraitis wrote: > > This might helphttp://www.htmldog.com/articles/suckerfish/ thank you :-) regards. 张骛之 --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: why does django display th/td:hover style incorrectly ?

2007-03-15 Thread OudS
On 3月14日, 下午6时38分, "Aidas Bendoraitis" <[EMAIL PROTECTED]> wrote: > I'm not sure about IE7, but all the previous versions of IE certainly > didn't support hover for other html tags than . So it is > not Django issue at all. If you need some browser specific special > effects, use javascript for

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread Steven Armstrong
Aidas Bendoraitis wrote: > I'm not sure about IE7, but all the previous versions of IE certainly > didn't support hover for other html tags than . So it is > not Django issue at all. [...] > If you need some browser specific special > effects, use javascript for IE. > [...] This might help

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread Aidas Bendoraitis
I'm not sure about IE7, but all the previous versions of IE certainly didn't support hover for other html tags than . So it is not Django issue at all. If you need some browser specific special effects, use javascript for IE. Regards, Aidas Bendoraitis [aka Archatas] On 3/14/07, OudS <[EMAIL

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread OudS
thank you for ur reply, Malcolm :) I define style th/td:hover as a:hover, but a:hover is right, th/ td:hover is none. first I define all style in a single css file, but there has not my anticipant style effect. then, I write a style block in html file: th:hover { background-color:

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread OudS
thank you for ur reply, Malcolm :) first I write a single css file, but there has not my anticipant style. then, I write a style block in html file: th:hover { background-color: white; } It is not correct effect that should display. at last, I saved current page which is being generated

Re: why does django display th/td:hover style incorrectly ?

2007-03-14 Thread Malcolm Tredinnick
On Wed, 2007-03-14 at 02:56 -0700, OudS wrote: > why does django display "th/td:hover" style incorrectly ? > > but "a:hover" is no problem... Please put some effort into supplying enough information that we might be able to understand what problem you are seeing. In this case it might be

Re: Why does Django think my browser isn't accepting cookies?

2006-12-17 Thread DavidAtEcodata
Sorry, found the problem! I had tried both 'localhost' and '127.0.0.1' variants of the URL without success; set the SESSION_COOKIE_DOMAIN variable to 'localhost', and still had the problem in both browsers - interesting because the Django FAQ says this only happens with Firefox. It went away

Re: Why does Django think my browser isn't accepting cookies?

2006-12-17 Thread DavidAtEcodata
Thanks, everyone, for all the helpful replies. However, none of these has worked. To reply briefly to your suggestions: I have disabled ZoneAlarm completely, deleted all cookies, enabled all cookies in both IE 6 and Firefox, rebooted the PC and tried the following URLs:

  1   2   >