Re: Django Login/Session Not Sticking

2014-06-05 Thread Mario Gudelj
I know this may sound silly but is there some kind of JavaScript code that may be messing things up? Had a similar issue before and it was related to JavaScript stupidity. On 05/06/2014 10:39 pm, "Juergen Schackmann" wrote: > - all app servers are running the same

Re: Supervisor alternative on Python 3.3.2?

2014-06-05 Thread Mario Gudelj
You can use init instead. On 06/06/2014 5:09 am, "Kwest Ambani" wrote: > Anyone know an alternative for Supervisor? I need something to keep > Gunicorn running in the background. My server is running Python 3.3.2. with > Nginx serving only static files. > > -- > You

Django HTML5 & CSS validation - Best Practice?

2014-06-05 Thread 77cc33
what is the best practice to validate HTML5 and CSS? is there some crawler who will visit all pages and tests them for HTML5 and CSS valid code? maybe with help of "tidy" or something? -- You received this message because you are subscribed to the Google Groups "Django users" group. To

We can do this!

2014-06-05 Thread JJ Zolper
Hey everybody, I really feel I could learn a lot from the experiences of developers working on high profile Django sites as I am working hard to begin that journey as well. And that is why I would love to have this project funded to 15k:

Re: Displaying an uploaded file in a form

2014-06-05 Thread Tom Evans
On Thu, Jun 5, 2014 at 8:12 PM, Shawn H wrote: > I've been trying to understand how to handle file uploads, and I've got the > upload portion down. I have a FileField in my form, process it in my view, > and it's saved in the correct location as specified in MEDIA_ROOT

Displaying an uploaded file in a form

2014-06-05 Thread Shawn H
I've been trying to understand how to handle file uploads, and I've got the upload portion down. I have a FileField in my form, process it in my view, and it's saved in the correct location as specified in MEDIA_ROOT and the upload_to attribute of the Model. My problem is, when I try to bind

Supervisor alternative on Python 3.3.2?

2014-06-05 Thread Kwest Ambani
Anyone know an alternative for Supervisor? I need something to keep Gunicorn running in the background. My server is running Python 3.3.2. with Nginx serving only static files. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

base.html template conflict

2014-06-05 Thread sergeig . public
I have installed both oscar and mezzanine apps into the same project. I was able to see both working when isolated from the other. oscar requires TEMPLATE_DIRS to have a custom location: import oscar TEMPLATE_DIRS = ( oscar.OSCAR_MAIN_TEMPLATE_DIR, os.path.join(PROJECT_ROOT,

base.html template conflict

2014-06-05 Thread sergeig . public
I have installed both oscar and mezzanine apps into the same project. I was able to see both working when isolated from the other. oscar requires TEMPLATE_DIRS to have a custom location: import oscar TEMPLATE_DIRS = ( oscar.OSCAR_MAIN_TEMPLATE_DIR, os.path.join(PROJECT_ROOT,

Using custom user (AbstractUser) and django-registration

2014-06-05 Thread Arnaud Vandecasteele
Hi guys, I've been trying the whole day to use django-registration with a custom user model. Basically this is what I did : *1/ Create a custom user model (models.py)* class customUser(AbstractUser): company_name = models.CharField(max_length=255) --> My first question is do I need to add

RE: safari ios 7 and django app - function not being called to serve video

2014-06-05 Thread Ilya Kazakevich
What algorithm is used for keys in HTTPS on your installation? AFAIK, Safari@iOS does NOT support DSA keys (only RSA keys are supported). Ilya Kazakevich, JetBrains PyCharm (Best Python/Django IDE) http://www.jetbrains.com/pycharm/ "Develop with pleasure!" >-Original Message- >From:

Re: safari ios 7 and django app - function not being called to serve video

2014-06-05 Thread Adam Teale
Ahh i just worked out the issue. The server is using SSL certification (https?) and for some reason on the iphone/ipad the serveAsset was not being called. So now to work out how to call the URL tag with SSL. Cheers! On Thu, Jun 5, 2014 at 10:33 AM, Adam Teale

Re: safari ios 7 and django app - function not being called to serve video

2014-06-05 Thread Adam Teale
Thanks for your suggestions Ilya. >From the apache side of things my serveAsset function is not called when the page is viewed from an iPhone/iPad. But it works fine from a browser on a computer. I changed to using the URL tag. I really can't work it out at the moment. I wonder if it is some

RE: safari ios 7 and django app - function not being called to serve video

2014-06-05 Thread Ilya Kazakevich
Hello, 1) Use FireBug (http://www.hongkiat.com/blog/installing-firebug-browsers-ios/) to check generated HTML for correct link and HTTP request your browser sends/receives 2) Check your web server logs to ensure Safari tries to load video (you need access log and error log I believe:

Re: Django app and a submodule name conflict

2014-06-05 Thread Tom Evans
On Wed, Jun 4, 2014 at 8:51 AM, Vahe Evoyan wrote: > I have modules in the project with the same names, all placed in different > applications. > > Particularly there are two apps that conflict and result an ImportError. The > project structure approximately is as follows.

Re: Django Login/Session Not Sticking

2014-06-05 Thread Juergen Schackmann
- all app servers are running the same code with same settings. - DNS load balancing was never used - just did a htop, no unexpected or old processes Am Donnerstag, 5. Juni 2014 11:37:30 UTC+2 schrieb Erik Cederstrand: > > Den 04/06/2014 kl. 13.55 skrev Juergen Schackmann

Re: URLs: mymodel_id vs object_id vs pk ....

2014-06-05 Thread Thomas Güttler
Thank you for answering my question. Unfortunately "slug" does not work in my context. My model does not have a "slug". It is like a ticket/issue system. There are several hundred of tickets each day. Thomas Güttler Am 04.06.2014 15:07, schrieb Thomas Güttler: What is the best practice for

Re: Django Login/Session Not Sticking

2014-06-05 Thread Erik Cederstrand
Den 04/06/2014 kl. 13.55 skrev Juergen Schackmann : > The production site is served via a load balancer and 8 application servers. > Even stranger: if I test the same code (with the same settings) on a test > server, that is not load balanced and basically has not

Re: Django Login/Session Not Sticking

2014-06-05 Thread Juergen Schackmann
*PLEASE HELP: I am not sure if this is a bug or caused by my code. But this is a serious issue for my production site.* To get some more debug information, I have created this Middleware: from django.conf import settings class SessionDebugMiddleware(object): def process_response(self,

Re: Django Login/Session Not Sticking

2014-06-05 Thread Juergen Schackmann
*PLEASE HELP: I am not sure if this is a bug or caused by my code. But this is a serious issue for my production site.* To get some more debug information, I have created this Middleware: from django.conf import settings class SessionDebugMiddleware(object): def process_response(self,

Re: Django Login/Session Not Sticking

2014-06-05 Thread Juergen Schackmann
*PLEASE HELP: I am not sure if this is a bug or caused by my code. But this is a serious issue for my production site.* To get some more debug information, I have created this Middleware: from django.conf import settings class SessionDebugMiddleware(object): def process_response(self,

Re: Transaction failure for nested atomic blocks and concurrent processes on MySQL

2014-06-05 Thread Bluemaro
Fixed url http://stackoverflow.com/questions/24039678/django-transaction-failure-for-nested-atomic-blocks-and-concurrent-processes-on -- 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