Re: How to Set Up for Apace and Mod_wsgi

2012-09-02 Thread Jon Blake
Thanks, Mike. I'll get back to this next Friday. Assistance much appreciated. Jon On Monday, September 3, 2012 4:47:16 PM UTC+10, dalupus wrote: > > Basically the entry in the httpd.conf file points to the dejango.wsgi > file. Instead of apache/django.wsgi, point it to the location of yours.

Re: How to Set Up for Apace and Mod_wsgi

2012-09-02 Thread Michael Crawford
Basically the entry in the httpd.conf file points to the dejango.wsgi file. Instead of apache/django.wsgi, point it to the location of yours. I did the same since django now creates a default wsgi file when you create the project. Those entries can go anywhere in the file as long as they a

Re: How to Set Up for Apace and Mod_wsgi

2012-09-02 Thread Jon Blake
Thanks, Mike, that fills in the gaps. Eddy Chan's notes discusses file apache/django.wsgi. This appears somewhat similar to wsgi.py in my project package - how do these two files relate to each other? And the entries in httpd.conf - they can go pretty well anywhere? Eddy's notes refer to inst

Re: Django deployment questions

2012-09-02 Thread Mike
On Sunday, September 2, 2012 10:29:52 AM UTC+2, Mulianto wrote: > > Hi, > > i just use git only, create Gits bare repo in the server , upload via git > push [ssh of course] , then use the hook/post-update script to pull the git > in the production code. > > thats a good idea, I forgot about th

Re: How to Set Up for Apace and Mod_wsgi

2012-09-02 Thread Michael Crawford
http://eddychan.com/post/18484749431/minimum-viable-ops-deploying-your-first-django-app-to Have a look at this post. I followed it friday and now have a working django install on ubuntu. Steps should be almost the same for fedora. Mike On Sep 3, 2012, at 1:01 AM, Jon Blake wrote: > I've w

How to Set Up for Apace and Mod_wsgi

2012-09-02 Thread Jon Blake
I've worked through parts 1 and 2 of the tutorial using the development server, and I have reviewed the doco on how to use Django with Apache and mod_wsgi. I want to trial a production environment on my Fedora 14 dev box, but the provided instructions assume some familiarity with configuring the

how to use timezones for datetime fields that are foreign keys in admin interface

2012-09-02 Thread dalupus
So basically I have a Project object which has a bunch of Items like so: class Project(models.Model): name = models.CharField(max_length=60) datetime = models.DateTimeField(auto_now_add=True) def __unicode__(self): return unicode(self.datetime) class Item(models.Model): na

django 1.4 using locale urls

2012-09-02 Thread Mo Mughrabi
Hi, am stuck with trying to use locale urls and applying language prefix. I tried to follow the manual but i guess i might have missed something, i also tried posting a question on stackoverflow but no signs yet. Any one can guide me, I would appreciate it. http://stackoverflow.com/questions/12227

Re: Using the CSRF token with two views

2012-09-02 Thread Robert Steckroth
No actually the the template that renders the form is separate from the template that submits it. It is working with a @csrf_exempt on the processing view however. I guess I need a way to inform form processing view of the token it was given in the form serving view. I should be able to provide thi

Re: Trouble installing django

2012-09-02 Thread puneet loya
Solved it :) Used the easy_install utility of python and the works done :) It installs Django automatically :) On Sunday, September 2, 2012 11:55:14 PM UTC+5:30, puneet loya wrote: > > I m a starter at python and Django.. > > When i execute the following command.. I get the error > python setu

Re: Django ImageField causes 503

2012-09-02 Thread Zeeshan Syed
One other thing I forgot to mention is that we're hosting on Amazon EC2 using Nginx. Zee On Sunday, September 2, 2012 3:46:27 PM UTC-4, Zeeshan Syed wrote: > > Hi there, > > In the models of one of our apps I'm including an ImageField for several > of the fields for some of the models. The imag

Django ImageField causes 503

2012-09-02 Thread Zeeshan Syed
Hi there, In the models of one of our apps I'm including an ImageField for several of the fields for some of the models. The images we upload are being stored using AWS S3 Storage. On a local machine, the site works fine and the images are uploading. However on our sandbox server, when I try an

Trouble installing django

2012-09-02 Thread puneet loya
I m a starter at python and Django.. When i execute the following command.. I get the error python setup.py install Traceback (most recent call last): File "setup.py", line 1, in from distutils.core import setup ImportError: No module named distutils.core I have 64-bit windows 7.. How do

Re: Editable Tables

2012-09-02 Thread Sait Maraşlıoğlu
Just need to display tables, but it has to be modular. Lets say I have a facebook like site, and my user has 5 friends. How I can display those 5 and let user edit it, lets say, edit their nicknames and this changes affect the database? On Sunday, 2 September 2012 00:58:25 UTC+3, Sait Maraşlıoğl

Re: Right approach to create simple CRM

2012-09-02 Thread Thomas Lockhart
... 3. Get opensource CRM and configure for your needs. 4'. ... and add plugins if needed. hth - Tom -- 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 u

Re: matching a name in url

2012-09-02 Thread Mando
Yup :) I guess I just needed to take a break for a few because after I came back i noticed it and couldn't find my post to reply. Thanks for the reply though. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web

Re: settings.py DEBUG crash

2012-09-02 Thread Alex Bruno Cáceres
Thank you guys! I'll try these solutions. Em sexta-feira, 31 de agosto de 2012 17h49min42s UTC-4, vicherot escreveu: > > maybe you are using the development server for serve statics files. > I had the same problem, in google i find the answer (if you copy all css > files from contrib.admin in you

Re: setting up Django Compressor

2012-09-02 Thread Joni Bekenstein
Just to cover the basics, did you follow all installation steps described here: http://django_compressor.readthedocs.org/en/latest/quickstart/#installation Mainly adding 'compressor.finders.CompressorFinder' to STATICFILES_FINDERS Another thing kind of odd is that your css URL starts with /medi

Re: setting up Django Compressor

2012-09-02 Thread Phil
Hi Joni, Thanks a million for reply. Yes I am using django runserver, its a working site just trying to get compressor working locally before moving to production. My css works fine without the compressor app. I can't see the file if I copy it in my url I get a 500 error and the "CACHE" folder

Right approach to create simple CRM

2012-09-02 Thread neixetis
Hello everyone! I am after following official tutorial, few days of reading docs, browsing threw plugins and so forth. I would like to create CRM with fundamental functions like customers management, sending emails, creating tasks for employees, calendar. I would also like it to look nice and e

Re: Upload Image and pdf file

2012-09-02 Thread Dott. Tegagni Alessandro
The file urls.py is: http://dpaste.com/795211/ If it is the help. Il giorno domenica 2 settembre 2012 14:51:21 UTC+2, Dott. Tegagni Alessandro ha scritto: > > The folder is empty. > > Il giorno venerdì 31 agosto 2012 08:47:55 UTC+2, Amyth ha scritto: >> >> Do you actually see anyfiles uploaded u

Re: Upload Image and pdf file

2012-09-02 Thread Dott. Tegagni Alessandro
The folder is empty. Il giorno venerdì 31 agosto 2012 08:47:55 UTC+2, Amyth ha scritto: > > Do you actually see anyfiles uploaded under static/finale if you manually > browse the folder? or is it empty ? > > On Thu, Aug 30, 2012 at 7:54 PM, Dott. Tegagni Alessandro < > tefar...@gmail.com > wrote:

Re: Django deployment questions

2012-09-02 Thread Phang Mulianto
Hi, i just use git only, create Gits bare repo in the server , upload via git push [ssh of course] , then use the hook/post-update script to pull the git in the production code. so only change/ updated part in the code got uploaded. save Bandwidth, and also reduce error, also faster deploy. for