django adaugare aplicatie in sys.path

14 views
Skip to first unread message

catafest

unread,
Jul 31, 2011, 2:40:53 AM7/31/11
to django-romania
Am incercat sa screez o aplicatie in django , insa am probleme cu ea .
Pana sa o creez cu :
python manage.py startapp testapp
Cand porneam cu
python manage.py runserver 8080
era totul ok , se vedea in server pagina de pornire django
Acum am aceasta eroare :
python manage.py runserver 8080
Error: No module named testapp
Din cate am inteles ar trebui sa adaug in sys.path aplicatia .
Acest lucru trebuie facut pe un Windows XP , python 2.7 si django
1.3.0
Am incercat toate variantele , pe care le stiam ...
am pus o variabila sistem PYTHONPATH cu path catre \mysite\testapp
am incercat sa o adaug in python cu
sys.path = ['C:\\nginx-1.0.5\\html\\mysite'] + sys.path
Nimic nu functioneaza .
Ceva idei cum as putea remedia ?

catafest

unread,
Jul 31, 2011, 2:45:54 AM7/31/11
to django-romania
era sa uit sa va spun ca am pus si :
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.mysite.testapp',
in settings.py dar la fel aceeasi problema

catafest

unread,
Jul 31, 2011, 3:00:07 AM7/31/11
to django-romania
am modificat in
din 'django.mysite.testapp', in 'mysite.testapp',
la comanda
python manage.py runserver 8080
totul pare ok :
Validating models...

0 errors found
Django version 1.3, using settings 'mysite.settings'
Development server is running at http://127.0.0.1:8080/
Quit the server with CTRL-BREAK.

in continuare localhost pe 127.0.0.1 este

The web page at http://127.0.0.1/ might be temporarily down or it may
have moved permanently to a new web address.

Ionel Maries Cristian

unread,
Jul 31, 2011, 11:58:38 AM7/31/11
to django-...@googlegroups.com
Serverul iti ruleaza pe 8080. Daca vrei sa il faci sa ruleze pe 80 rulezi: python manage.py runserver 80

-- Ionel



2011/7/31 catafest <catal...@gmail.com>

catafest

unread,
Jul 31, 2011, 11:14:11 PM7/31/11
to django-romania
Mda... am gasit problema ...
Am reusit sa il fac sa functioneza utilizand django + flup + fcgi +
nginx.
Este destul de simplu si se poate testa usor django.
Reply all
Reply to author
Forward
0 new messages