It looks like you are typing "*django-admin.py startproject WebSite*" at
the python prompt, which is incorrect.  You type it at the shell.  If you
get command not found, then instead type "python
full/path/to/django-admin.py startproject WebSite".  And in any case, the
current directory must be the one under which you want WebSite created.

On Wed, Jan 21, 2015 at 5:03 PM, <th.gran...@free.fr> wrote:

>
> Hello
>
> i have sesinstalled django and re installed withdebian package
> when i lauch command django-admin.py startproject website here is what i
> get:
>
>
>
>
>
>
>
>
>
>
>
>
>
> *python3.4Python 3.4.2 (default, Dec 27 2014, 13:16:08) [GCC 4.9.2] on
> linuxType "help", "copyright", "credits" or "license" for more
> information.>>> django-admin.py startproject WebSite  File "<stdin>", line
> 1    django-admin.py startproject WebSite
> ^SyntaxError: invalid syntax*i moved dist-packages from python3 directory
> to python3.4 directory but without any result
> What can i do???
> Please help
>
> Thanks
>
> Le mercredi 21 janvier 2015 13:19:49 UTC+1, th.gr...@free.fr a écrit :
>>
>> Hello
>>
>> i have just installed django 1.7 on Debian jessie via synaptic
>>
>> when i start a console,
>>
>> import django is OK
>>
>> print(django.get_version()) ---> version 1.7.2
>>
>> Now i try to launch the command "django-admin.py startproject WebSite"
>> i get the error:
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *Traceback (most recent call last):  File
>> "/usr/local/lib/python3.4/dist-packages/django/conf/__init__.py", line 94,
>> in __init__    mod = importlib.import_module(self.SETTINGS_MODULE)  File
>> "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
>> return _bootstrap._gcd_import(name[level:], package, level)  File "<frozen
>> importlib._bootstrap>", line 2254, in _gcd_import  File "<frozen
>> importlib._bootstrap>", line 2237, in _find_and_load  File "<frozen
>> importlib._bootstrap>", line 2212, in _find_and_load_unlocked  File
>> "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
>> File "<frozen importlib._bootstrap>", line 2254, in _gcd_import  File
>> "<frozen importlib._bootstrap>", line 2237, in _find_and_load  File
>> "<frozen importlib._bootstrap>", line 2224, in
>> _find_and_load_unlockedImportError: No module named 'WebSite'During
>> handling of the above exception, another exception occurred:Traceback (most
>> recent call last):  File "/usr/local/bin/django-admin.py", line 5, in
>> <module>    management.execute_from_command_line()  File
>> "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py",
>> line 385, in execute_from_command_line    utility.execute()  File
>> "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py",
>> line 345, in execute    settings.INSTALLED_APPS  File
>> "/usr/local/lib/python3.4/dist-packages/django/conf/__init__.py", line 46,
>> in __getattr__    self._setup(name)  File
>> "/usr/local/lib/python3.4/dist-packages/django/conf/__init__.py", line 42,
>> in _setup    self._wrapped = Settings(settings_module)  File
>> "/usr/local/lib/python3.4/dist-packages/django/conf/__init__.py", line 98,
>> in __init__    % (self.SETTINGS_MODULE, e)ImportError: Could not import
>> settings 'WebSite.settings' (Is it on sys.path? Is there an import error in
>> the settings file?): No module named 'WebSite'*it seems that the
>> variable *SETTINGS_MODULE *is not properly initialized.
>> I don't know what to ????
>>
>> Thanks for your help
>>
>> PS: the directory WebSite is empty but created
>>
>>  --
> 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 it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/006aca02-67f1-4447-9faa-65fc01039f05%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/006aca02-67f1-4447-9faa-65fc01039f05%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB%2BAj0uDomQbsk76izJ9FSDuYhWtuc45v4p716oj%3DbjKByD6ww%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to