Apache Double Slash Help

2015-05-15 Thread Jesus Ignacio Gómez Pérez
I am part of a colaborative initiative to develop software on Django, currently i'm working with Apache and Oscar Framework and i'm having troubles with the following request URI " *dashboard/content-blocks/page//asistenciaMedica/*", which returns a 404 code from Django url router which transla

Re: What is the ideal web server to use with Django?

2015-05-15 Thread Marc Aymerich
On Fri, May 15, 2015 at 10:33 AM, Tom Evans wrote: > On Thu, May 14, 2015 at 4:18 PM, Marc Aymerich wrote: >> On Thu, May 14, 2015 at 11:26 AM, Tom Evans wrote: >>> On our app servers we typically use Apache with worker MPM and >>> mod_wsgi, although we have a few nginx+uwsgi sites, and I would

CSRF Verification error appeared after I changed DNS ver2

2015-05-15 Thread Jun Tanaka
Hi, I got the same kind of an error as below. CSRF Verification error appeared after I changed DNS https://groups.google.com/forum/#!msg/django-users/dQXdPeAd6Fg/wFsEG03Qeu0J And there is no solution written in there. Hope someone can help me. Versions Djagno 1.6 python2.7 In my case, I got u'C

Re: Improve Performance in Admin ManyToMany

2015-05-15 Thread Timothy W. Cook
On Fri, May 15, 2015 at 7:25 AM, Erik Cederstrand wrote: > > > I wonder if there is another approach that I can use to solve this? > > Does the suggestion to append select_related() / prefetch_related() to the > queryset in your admin view not work? > ​If I implemented it correctly, it doesn't h

Re: CSRF Verification error appeared after I changed DNS

2015-05-15 Thread Jun Tanaka
I got the same kind of an error. In my case, I got u'CSRF_COOKIE' instead of 'csrf' in request. I appreciate any solution for this issue. 2013年1月9日水曜日 8時44分49秒 UTC+9 Saqib Ali: > > > Hi. > > I have been using Django successfully for a few days now. I was running my > django application on an

CSRF Verification error appeared after I changed DNS ver2

2015-05-15 Thread Jun Tanaka
Hi, I got the same kind of an error as below. CSRF Verification error appeared after I changed DNS https://groups.google.com/forum/#!msg/django-users/dQXdPeAd6Fg/wFsEG03Qeu0J And there is no solution written in there. Hope someone can help me. Versions Djagno 1.6 python2.7 -- You received thi

DjangoCon US: Call For Proposals: Last Call

2015-05-15 Thread Jeff Triplett
Hello everyone, We are down to our last call for talk and tutorial submissions for DjangoCon US this year. If you have a talk or tutorial idea then I would encourage you to consider submitting one today before it's too late because we will not be exte

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-05-15 Thread Carl Meyer
On 05/15/2015 09:14 AM, Andreas Kuhne wrote: > You are getting it because someone has come to your server by > entering www.g3suprimentos.com.br in > a browser. If you don't have that address in the allowed hosts setting, > you will get the error you have received

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-05-15 Thread François Schiettecatte
There is nothing to debug, Django is just telling you that it is getting an invalid request where the ‘Host:’ header does not match the host name the application is expecting. Django will reject such requests and warn you about them: https://docs.djangoproject.com/en/1.8/ref/settings/#a

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-05-15 Thread Andreas Kuhne
You are getting it because someone has come to your server by entering www.g3suprimentos.com.br in a browser. If you don't have that address in the allowed hosts setting, you will get the error you have received. If you don't want your server to show something for www.g3suprimentos.com.br, then th

Re: Invalid HTTP_HOST, can someone explain why I am getting this?

2015-05-15 Thread frocco
The problem is I do not know how to debug this issue. On Tuesday, March 17, 2015 at 9:17:15 AM UTC-4, frocco wrote: > > SuspiciousOperation: Invalid HTTP_HOST header (you may need to set > ALLOWED_HOSTS): www.g3suprimentos.com.br > > I keep getting this error from time to time. > > Is someone try

Re: best way change template base my app

2015-05-15 Thread Ilya Kazakevich
You also may use widgets instead of "extends": http://sniplates.readthedocs.org/en/latest/ On Friday, May 15, 2015 at 6:50:40 AM UTC+3, sacrac wrote: > > Thank Andre Luis :) > > On Wed, May 13, 2015 at 1:41 PM, André Luiz > wrote: > >> extends should always be on first line of file and it accep

Re: What is the ideal web server to use with Django?

2015-05-15 Thread Ilya Kazakevich
Hi. I believe the best installation is Apache + wsgi and nginx for static. In some scenarios Apache performance may be your bottleneck, but: 1) there are a lot of ways to tune it. Read about "Multi-Processing Modules" for example. 2) 99% of web applications do have different bottlenecks, not th

migrate primary key changes

2015-05-15 Thread raviteja nandula
Hi All, I have created a model with primary key, later i have removed the primary key and used default `id` as primary key When i tried to migrate it is throwing error with multiple primary keys defined Before running migrate i have executed on MySQL command interface "ALTER TABLE `table_

Re: "RuntimeError: Error creating new content types."

2015-05-15 Thread Pedram Negahdar
Same problem nothing is working!! On Wednesday, May 6, 2015 at 6:07:45 AM UTC-4, Max Usachev wrote: > > Try to migrate auth application first, and then others: > manage.py migrate auth > manage.py migrate > > среда, 29 апреля 2015 г., 14:12:33 UTC+3 пользователь Shubham Goyal > написал: >> >> Fac

Re: Improve Performance in Admin ManyToMany

2015-05-15 Thread Erik Cederstrand
> Den 14/05/2015 kl. 22.19 skrev Timothy W. Cook : > > That is exactly the problem Simon. Everyone of those models reference a > model called Project. I did this so that when the items are displayed in the > selects, the user knows which project it is from. In the interim I guess > I'll rem

Re: Scaling/Parallel patterns for a View executing complex database transaction

2015-05-15 Thread mesulphur
Hi Stephen, We did try with Redis (instead of memcached) but the memory usage Redis is 2.5x-3x the volume of data, the economics of having entire data in memory then breaks down. Also because of the large degree of variation/random access patterns, there is little benefit in using an LRU cach

possible bug - CharField accepts string as max_length

2015-05-15 Thread Santiago L
Hi, I think that I have found a bug on the system check: it accepts a string as value for CharField.max_length argument. It happens only if the string can be converted to int (e.g. max_length='16'). Otherwise shows fields.E121 error (e.g. max_length='foo'). from django.db import models class

Re: What is the ideal web server to use with Django?

2015-05-15 Thread Avraham Serour
>chausette allows you to run over a unix socket, and this allows circusd to easily spin up a new backend (with different code) and transfer requests to that unix socket, whilst leaving the old backend still running. This was the killer feature that I started using uwsgi, you can reload your new dj

Re: What is the ideal web server to use with Django?

2015-05-15 Thread Tom Evans
On Thu, May 14, 2015 at 4:18 PM, Marc Aymerich wrote: > On Thu, May 14, 2015 at 11:26 AM, Tom Evans wrote: >> On our app servers we typically use Apache with worker MPM and >> mod_wsgi, although we have a few nginx+uwsgi sites, and I would dearly >> love some time to play around with a circusd +