Re: Serve different page to IE7/8?
Conditional stylesheets vs CSS hacks? Paul Irish says the answer is neither: http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ On Nov 21, 2010, at 7:54 PM, Victor Hooi wrote: > I know this is a bit of a hack, but what's the best way to serve up a > different template to those IE7 users? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
For example, if you are using uWSGI 0.9.2.6 you can use an XML document similar to this: /srv/python-environments/voxinfinitus/ /srv/python-environments/ DJANGO_SETTINGS_MODULE=voxinfinitus.settings django.core.handlers.wsgi:WSGIHandler() 6 /tmp/cherokee/voxi-live.sock Make sure that the user that is executing Cherokee can write to your socket path. Then whenever you want to see changes, just set up a script to rm the socket path. No need to reset uWSGI. Good luck! Let me know if there's any other questions I might be able to help with. On Nov 1, 2010, at 3:21 PM, Max Countryman wrote: > Karim, I would set it up using a UNIX socket. Then all you have to do is rm > the socket path. :) There is no need to kill uWSGI in that case. > > On Nov 1, 2010, at 3:13 PM, Karim Gorjux wrote: > >> On Sun, Oct 31, 2010 at 01:27, Max Countryman <m...@me.com> wrote: >>> Yes, absolutely. :D Good luck! >> >> Max, I'm trying with uwsgi and Cherokee. Seems to work, but if I edit >> the code, I have to kill the uwsgi process to see the modification on >> the browser. Is that normal? >> >> -- >> K. >> Blog Personale: http://www.karimblog.net >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To post to this group, send email to django-us...@googlegroups.com. >> To unsubscribe from this group, send email to >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Karim, I would set it up using a UNIX socket. Then all you have to do is rm the socket path. :) There is no need to kill uWSGI in that case. On Nov 1, 2010, at 3:13 PM, Karim Gorjux wrote: > On Sun, Oct 31, 2010 at 01:27, Max Countryman <m...@me.com> wrote: >> Yes, absolutely. :D Good luck! > > Max, I'm trying with uwsgi and Cherokee. Seems to work, but if I edit > the code, I have to kill the uwsgi process to see the modification on > the browser. Is that normal? > > -- > K. > Blog Personale: http://www.karimblog.net > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Yes, absolutely. :D Good luck! On Oct 30, 2010, at 5:04 PM, Karim Gorjux wrote: > Yes, I noted that when I edit a url and sometimes the code, I have to > kill the fastcgi process to see the result in the browser. I think > that I could run the fastcgi as explained in the django documentation: > > ./manage.py runfcgi method=prefork socket=/home/user/mysite.sock > pidfile=django.pid > > and map in vim file a kill command > > kill `cat $PIDFILE` -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
This may be of use to anyone using any version of Cherokee prior to 1.09: http://lists.octality.com/pipermail/cherokee/2010-September/013432.html There are several threads that detail the manual set up process. But the key here is that the wizard is, as Roberto states, "(currently) totally broken," so don't use it! Manual set up is fairly intuitive and not difficult. Karim, you may find that refreshing your project is easier with uWSGI as opposed to something like FastCGI, in reference to your question about having to restart Cherokee each time you make changes. Regards, Max -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Generally, yes. If you're using a socket, you can rm the socket path each time you update. That will avoid the need to restart Cherokee. On Oct 29, 2010, at 4:31 AM, Karim Gorjux wrote: > I have just one question. While I'm editing the source of the project, > to see the result I have always to restart the server or there is > another way? > > -- > K. > Blog Personale: http://www.karimblog.net > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Rob, I don't want to email you directly. I'm sure you're a nice guy and everything, but I'm on this list to contribute to the list. Please stop asking this. That *is* obnoxious. I'm sorry you see my comments as unhelpful or "unconstructive[sic]", however please remember you are not the only one reading or contributing to this list; please don't be judge and jury, some people find that insufferable, Thank you, Max On Oct 29, 2010, at 6:48 AM, Robbington wrote: > Dear Paul and Max, > > As I mentioned before please email me directly should you wish to > continue this discussion further, and or create a new post. I feel it > unfair to discuss this in this particular forum as it is unrelated to > the original subject matter. > > I meant no offense to Max, I can see how the word obnoxious can be > construed as such and I apologise, I merely meant I felt his comments > were unconstructive in context. > > Regards > > Robert Dean > robbing...@hotmail.co.uk > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
On Oct 29, 2010, at 5:45 AM, Robbington wrote: > Actually I mentioned Uwsgi, You missed where I referenced, where was here: On Oct 28, 2010, at 2:27 PM, Karim Gorjux wrote: > Now I solved all my problems working with settings.py. Seems that also > the debug works, but If I'll be again in trouble I'll get a try at > uwsgi. Again, this covered in /great detail/ on the Cherokee list: currently the wizard produces a configuration and is broken, so there are other methods for manually setting up a source in Cherokee that uses uwsgi. Anyway, my intent here was to help. It's ridiculous how everything has to be reduced to pedantic argumentation and sanctimonious advice about what to post where. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
He mentioned uwsgi. He should know that the wizard is currently broken. That means that it produces a configuration that doesn't work properly. Please refer to the Cherokee mailing list of you're unaware of these issues. It should be fixed in v1.09 which is coming soon. Thanks! On Oct 28, 2010, at 14:51, Robbingtonwrote: > > Hi Max, > > I am not sure what you mean by ' Do not use the uwsgi wizard: it's > currently broken'? > > Rob, > > Ps, should you wish to discuss this further, perhaps it is better you > email me directly, as to avoid filling Karims post with unnecessary > messages. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Oh I forgot to mention! Do not use the uwsgi wizard: it's currently broken. Expect a fix soon and refer to the various threads detailing the set up process without the wizard on Cherokee's mailing list. On Oct 28, 2010, at 14:06, Robbingtonwrote: > Glad to finally see some one using Cherokee with django. Dont just use > it in development, its actually less memory intensive than apache as > well as having an awesome admin interface. > > Anyway enough plugging. > > To avoid problems and for simplicty I would advise using Cherokee > Uwsgi config to serve up your python code. > > Rob > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Cherokee for home developing
Rob, I have been using Cherokee for Django deployment for almost a year now. I know several other devs who prefer it as well. Also there's always some activity on the Cherokee list itself related to Django. On Oct 28, 2010, at 14:06, Robbingtonwrote: > Glad to finally see some one using Cherokee with django. Dont just use > it in development, its actually less memory intensive than apache as > well as having an awesome admin interface. > > Anyway enough plugging. > > To avoid problems and for simplicty I would advise using Cherokee > Uwsgi config to serve up your python code. > > Rob > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: What does an ideal django workflow setup look like?
There was a great article on HN regarding project structure although now I can't seem to find it. Perhaps someone has it bookmarked? On Oct 22, 2010, at 11:02, Kenwrote: > *I've Googled, but have not found any really organized and layman- > friendly overview, which is why I came here* > > I know how to get python/django working on my computer (PC or Mac) and > have developed simple test apps using django's built-in dev server and > a mysql back-end. So I can get things to work and don't need help on > installing stuff. > > But as a coding hobbyist, I don't know how to set up a pro workflow. I > don't know best practices on how to setup and maintain a dev and > production environment, how to efficiently publish to production, how > to integrate all that into a version control system (i.e., git), > basically anything that a pro coder at a startup would take for > granted as "the way to do things". > > I understand there are many different ways and products to use to > setup a great workflow for developing in django, but would like to > hear how you or your startup team (or corporate dev group) does it. > Specifics would be amazing, as I need a little hand holding, i.e. > please cover anything and everything that I should know in order to > develop efficiently, robustly, and eventually collaboratively. > > Basically, please explain it in a way that a layman can follow the > steps and setup a workflow without pulling his hair out. =P > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: SITE_ID
Have you set SITE_ID in your settings.py file and run 'python manage.py syncdb'? On Sep 25, 2010, at 10:59 AM, craphunter wrote: > Yes, I have read it, but I don't really get it. What ist the meaning? > What do I have to do?! > > Craphunter > > On 25 Sep., 16:50, craphunterwrote: >> Hey, >> >> I do have problem with SITE_ID. I don't really get this. What is it? >> >> I am using the django registration from bitbucker. When I click on >> register I get the following error-message: >> >> You're using the Django "sites framework" without having set the >> SITE_ID setting. Create a site in your database and set the SITE_ID >> setting to fix this error. >> >> Am I right that I do have to set an ID in my database? >> >> For example >> mysql > test.db table 1? >> >> settings.py >> >> SITE_ID = 1 >> >> Can somebody write me a little tutorial? >> >> Thanks, >> >> Craphunter >> >> PS: Sorry, newbee! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: SITE_ID
http://docs.djangoproject.com/en/dev/ref/settings/?from=olddocs#site-id On Sep 25, 2010, at 10:50 AM, craphunter wrote: > Hey, > > I do have problem with SITE_ID. I don't really get this. What is it? > > I am using the django registration from bitbucker. When I click on > register I get the following error-message: > > You're using the Django "sites framework" without having set the > SITE_ID setting. Create a site in your database and set the SITE_ID > setting to fix this error. > > Am I right that I do have to set an ID in my database? > > For example > mysql > test.db table 1? > > settings.py > > SITE_ID = 1 > > Can somebody write me a little tutorial? > > Thanks, > > Craphunter > > PS: Sorry, newbee! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: third party application with Django
Why not set that up within Apache? On Sep 3, 2010, at 4:30, Goranwrote: > I need to install some php application (forum) in some folder domain/ > forum How can I do this? Django 1.2 Appache with FastCgi, shared > hosting. Is it possible to exclude url "domain/forum" from django > somehow? > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: Multiple django projects
Absolutely! :) On Sep 2, 2010, at 12:12 PM, commonzenpython wrote: hey, guys is it possible to have multiple django projects in one server ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/django-users?hl=en . -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.