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 guide to setup a Django 1.4.1 test project. So far I've setup Python 2.5 with MySQL-python-1.2.3 and setuptools, setup mod_wsgi, and edited .bash_profile. I've downloaded Django 1.4.1 (not trunk) and so far everything looks good. As soon as I run "django-admin.py startproject testproject" I receive an error and am having trouble resolving it. I apologize if this has come up before bet a quick search wasn't helpful. Thanks in advance for any assistance, the error is below:
[-bash-3.2 root@server1: /home/username/sites/domain.com] # /home/username/sites/domain.com/django/bin/django-admin.py startproject testproject
Traceback (most recent call last):
File "/home/username/sites/domain.com/django/bin/django-admin.py", line 2, in ?
from django.core import management
File "/home/username/sites/domain.com/django/__init__.py", line 15
parts = 2 if version[2] == 0 else 3
^
SyntaxError: invalid syntax
[-bash-3.2 root@server1: /home/username/sites/domain.com] #
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/WszNLKVNcxcJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
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 guide to setup a Django 1.4.1 test project. So far I've setup Python 2.5 with MySQL-python-1.2.3 and setuptools, setup mod_wsgi, and edited .bash_profile. I've downloaded Django 1.4.1 (not trunk) and so far everything looks good. As soon as I run "django-admin.py startproject testproject" I receive an error and am having trouble resolving it. I apologize if this has come up before bet a quick search wasn't helpful. Thanks in advance for any assistance, the error is below:
[-bash-3.2 root@server1: /home/username/sites/domain.com] # /home/username/sites/domain.com/django/bin/django-admin.py startproject testproject
Traceback (most recent call last):
File "/home/username/sites/domain.com/django/bin/django-admin.py", line 2, in ?
from django.core import management
File "/home/username/sites/domain.com/django/__init__.py", line 15
parts = 2 if version[2] == 0 else 3
^
SyntaxError: invalid syntax
[-bash-3.2 root@server1: /home/username/sites/domain.com] #
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 into another post. I hope this helps anyone else interested in setting up Django on a CentOS 5.x cPanel system.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/GukGIRK-mpwJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Hi,
Just follow these 7 steps to start new project http://f2finterview.com/web/Django/17/ For more http://f2finterview.com/web/Django
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/DmRKpNppH9MJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.