SyntaxError Creating New Project

2012-08-22 Thread Bestrafung
I'm new to Django and though I've dabbled with Linux off and on for a decade I'm still learning so please go easy on me. I'm following this guideto setup a Django 1.4.1 test project. So far I've

Re: SyntaxError Creating New Project

2012-08-27 Thread Bestrafung
Thank you all for the tips. I was pretty sure I tried using the full path to the 2.5 install with the same error but I'll check again. I'll let you know what I find. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on th

Re: SyntaxError Creating New Project

2012-08-27 Thread Bestrafung
n the user's home directory. Is this the problem? I will keep looking into it, the guide had me enter export PYTHONPATH='$PYTHONPATH:/home/username/sites/domain.com' in the user's .bash_profile, since I am logged in as root should I add that to the /root/.bash_profile? On Monday

Re: SyntaxError Creating New Project

2012-08-27 Thread Bestrafung
Ok, I think it's worked out now. I added the export line to the root .bash_profile and then changed the shebang in django-admin.py to "/opt/python2.5/bin python" and now everything seems to be working. If anyone is working on an older Red Hat/CentOS system and has to follow the guide I'm follow

Re: SyntaxError Creating New Project

2012-09-06 Thread Bestrafung
ango.core.management On Monday, August 27, 2012 6:07:50 PM UTC-4, Melvyn Sopacua wrote: > > On 27-8-2012 17:05, Bestrafung wrote: > > Ok, I think it's worked out now. I added the export line to the root > > .bash_profile and then changed the shebang in django-admi

Re: SyntaxError Creating New Project

2012-09-18 Thread Bestrafung
I restarted from the beginning using the previously mentioned guide but also a very helpful post on the cpanel.net forums and there were some missed steps and minor misconfigurations. Everthing seems to be working on the webserver side but now have some strange permissions issues that'll go int

New Project 403 Forbidden Error

2012-09-26 Thread Bestrafung
I have been following these guides to setup Django on a CentOS cPanel server: http://forums.cpanel.net/f5/django-python-cpanel-71229-p2.html#post439009and http://blog.perplexedlabs.com/2008/11/10/setup-python-25-mod_wsgi-and-django-10-on-centos-5-cpanel/. After following those guides everythin

Re: New Project 403 Forbidden Error

2012-10-01 Thread Bestrafung
Ok, I'm very new to all of this. I assumed following that guide would give me a basic working setup including some kind of "default" or starting pages/templates. If I understand correctly I have to create some kind of pages and/or templates still. I'm trying to figure that out now. On Thursday,

Re: New Project 403 Forbidden Error

2012-10-08 Thread Bestrafung
setup. Note that blog post is from 2008 and at the > time there were very little tools usable for Django. > > On Wednesday, September 26, 2012 2:14:01 PM UTC-4, Bestrafung wrote: >> >> I have been following these guides to setup Django on a CentOS cPanel >> server

Error setting up Django 1.4 on cPanel Server

2012-11-05 Thread Bestrafung
I am slowly working all of this out and the first 3 or 4 times I tried to setup Django on our cPanel server I kept getting the same 403 Forbidden error. I scrapped everything and started from scratch as I wanted to use Python 2.7 instead of 2.5. Now I am receiving completely different errors I'

Incorrect Python Version Being Used

2012-11-06 Thread Bestrafung
I have been running into this problem for a long while trying to setup my first Django project and I keep coming back to this problem. I am relatively new when it come to Linux, I'm learning but still have a long way to go. I am using CentOS 5.8 cPanel which comes with Python 2.4. Following ins

Re: Incorrect Python Version Being Used

2012-11-06 Thread Bestrafung
: > > $ /opt/python2.7/bin/python manage.py runserver 80 > > Similarly, if you're installing packages via pip or easy_install: > > $ /opt/python2.7/bin/pip install some_package > $ /opt/python2.7/bin/easy_install some_package > > _Nik > > On 11/6/2012 7:0

Re: Incorrect Python Version Being Used

2012-11-06 Thread Bestrafung
I'm not familiar with how to do this but the suggestion is noted. I will look into it. Thanks. On Tuesday, November 6, 2012 11:26:41 AM UTC-5, Thomas wrote: > > Use virtualenv. Always. > > - Tom > > -- > > You received this message because you are subscribed to the

Re: Error setting up Django 1.4 on cPanel Server

2012-11-06 Thread Bestrafung
I think I've pretty well ruled out python as the issue. It looks to be in the Apache/mod_wsgi setup somewhere. I can start the built-in runserver, "python manage.py runserver 0.0.0.0:8000", and work with it but Apache refuses to work. I've never worked with mod_wsgi or Django before so I'm not

Re: Incorrect Python Version Being Used

2012-11-07 Thread Bestrafung
Thanks for the info. I built mine using: ./configure --with-apxs=/usr/local/apache/bin/apxs --with-python=/opt/python2.7/bin/python I'm fairly certain everything is good there. I'm able to load both projects individually using "python manage.py runserver 0.0.0.0:8000" without issue. The trouble