Re: django-admin.py startproject mysite

2015-11-10 Thread Fred Stluka

Muhammad,

Use the command ifconfig (Linux, Mac) or ipconfig (Windows) to
see your local IP address.

--Fred

Fred Stluka -- mailto:f...@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.

On 11/10/15 10:08 AM, Peter of the Norse wrote:

0.0.0.0 is not an actual IP address.  You can’t put it in your browser.  
Instead, you need to find your computer’s IP address and use that.  How you 
find it depends on your OS, but once you do, then you can visit 
http://192.168.0.5:8000/ (for example).


On Nov 4, 2015, at 5:50 PM, Muhammad Asamov  wrote:

HI
I was wodering whether someone can hepl me with startproject

The thing is when I am running startproject from the server ip 127.0.0.1:8000
which was created automaticly i can see the result but if i give different 
address:
0.0.0.0:8000 I can see nothing it is not showing anything

Actually I was giving this address cause wanted to see mysite from another 
computer
and don't know why it is not working


Peter of the Norse
rahmc...@radio1190.org





--
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/5642495E.90603%40bristle.com.
For more options, visit https://groups.google.com/d/optout.


Re: django-admin.py startproject mysite

2015-11-10 Thread Peter of the Norse
0.0.0.0 is not an actual IP address.  You can’t put it in your browser.  
Instead, you need to find your computer’s IP address and use that.  How you 
find it depends on your OS, but once you do, then you can visit 
http://192.168.0.5:8000/ (for example). 

> On Nov 4, 2015, at 5:50 PM, Muhammad Asamov  wrote:
> 
> HI 
> I was wodering whether someone can hepl me with startproject 
> 
> The thing is when I am running startproject from the server ip 127.0.0.1:8000 
> which was created automaticly i can see the result but if i give different 
> address:
> 0.0.0.0:8000 I can see nothing it is not showing anything 
> 
> Actually I was giving this address cause wanted to see mysite from another 
> computer 
> and don't know why it is not working
> 

Peter of the Norse
rahmc...@radio1190.org



-- 
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/4D4E4799-4A8F-48A8-A0EF-535BFFB8DFA0%40Radio1190.org.
For more options, visit https://groups.google.com/d/optout.


Re: django-admin.py startproject mysite

2015-11-04 Thread Dheerendra Rathor
Start your site with python manage.py runserver 0.0.0.0:8000

On Thu, 5 Nov 2015 at 11:35 Muhammad Asamov  wrote:

> HI
> I was wodering whether someone can hepl me with startproject
>
> The thing is when I am running startproject from the server ip
> 127.0.0.1:8000
> which was created automaticly i can see the result but if i give different
> address:
> 0.0.0.0:8000 I can see nothing it is not showing anything
>
> Actually I was giving this address cause wanted to see mysite from another
> computer
> and don't know why it is not working
>
>
> --
> 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/0dd068ca-a799-4d49-a5df-28ba1552b463%40googlegroups.com
> 
> .
> 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/CAByqUghfzC6mX6Zerwi%3Dj102ADBtgbAetsEKYr%2BFBBt3fMQ5CA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: django-admin.py startproject mysite

2015-11-04 Thread Muhammad Asamov
HI 
I was wodering whether someone can hepl me with startproject 

The thing is when I am running startproject from the server ip 
127.0.0.1:8000 
which was created automaticly i can see the result but if i give different 
address:
0.0.0.0:8000 I can see nothing it is not showing anything 

Actually I was giving this address cause wanted to see mysite from another 
computer 
and don't know why it is not working


-- 
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/0dd068ca-a799-4d49-a5df-28ba1552b463%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problème de création de mon projet (django-admin.py startproject mysite)

2013-09-06 Thread cingusoft
Hi

Chenge your folder
Now you are in the python/scripts folder that have restrictions
To do that you need to add the scripts folder into the variable path and call 
the django-admin from another folder, for example your user document folder.


BlackBerry de movistar, allí donde estés está tu oficin@

-Original Message-
From: edith <edithmo...@gmail.com>
Sender: django-users@googlegroups.com
Date: Fri, 6 Sep 2013 06:51:19 
To: <django-users@googlegroups.com>
Reply-To: django-users@googlegroups.com
Subject: Problème de création de mon projet (django-admin.py startproject 
mysite)

 

Salut, je suis très débutante sur le  framework Django .. 

Je n'arrive pas à créer mon projet, pourtant j'ai survie tous les étapes 
d'installation.

 

Voici le message que je reçois.

 

Merci d’avance pour vos réponses, mon SE est Windows8.
 

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Re: django-admin.py startproject mysite error

2013-07-23 Thread Jay Lozier
virtualenv seems to work well and I can get django tamed.

On Saturday, July 20, 2013 5:55:21 PM UTC-4, Jay Lozier wrote:
>
> Using openSUSE 12.3
> python 2.7.3
> django 1.5.1 installed manually and verified
>
> When I enter "django-admin.py startproject mysite" at the command prompt I 
> get the following traceback:
>
> Traceback (most recent call last):
> File "/usr/bin/django-admin.py", line 5, in 
> management.execute_from_command_line()
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 453, in execute_from_command_line
> utility.execute()
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 272, in fetch_command
> klass = load_command_class(app_name, subcommand)
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 77, in load_command_class
> module = import_module('%s.management.commands.%s' % (app_name, name))
> File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 
> 35, in import_module
> __import__(name)
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/commands/startproject.py",
>  
> line 2, in 
> from django.core.management.templates import TemplateCommand
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/templates.py", 
> line 20, in 
> from django.template import Template, Context
> File "/usr/lib/python2.7/site-packages/django/template/__init__.py", line 
> 53, in 
> from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END,
> File "/usr/lib/python2.7/site-packages/django/template/base.py", line 18, 
> in 
> from django.utils.formats import localize
> File "/usr/lib/python2.7/site-packages/django/utils/formats.py", line 5, 
> in 
> from django.utils import dateformat, numberformat, datetime_safe
> File "/usr/lib/python2.7/site-packages/django/utils/dateformat.py", line 
> 25, in 
> from django.utils.timezone import is_aware, is_naive
> File "/usr/lib/python2.7/site-packages/django/utils/timezone.py", line 11, 
> in 
> import pytz
> File "/usr/lib/python2.7/site-packages/pytz/__init__.py", line 35, in 
> 
> from pkg_resources import resource_stream
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2978, in 
> 
> add_activation_listener(lambda dist: dist.activate())
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 709, in 
> subscribe
> callback(dist)
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2978, in 
> 
> add_activation_listener(lambda dist: dist.activate())
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2465, in 
> activate
> map(declare_namespace, self._get_metadata('namespace_packages.txt'))
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2045, in 
> declare_namespace
> _handle_ns(packageName, path_item)
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2010, in 
> _handle_ns
> raise TypeError("Not a package:", packageName)
> TypeError: ('Not a package:', 'cgi')
>
> How do I fix this?
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: django-admin.py startproject mysite error

2013-07-22 Thread gilberto dos santos alves
beside gods of olympo say that env var PYTHONPATH handle this,
please verify what your PATH and PYTHONPATH  (command echo $PATH;  echo 
$PYTHONPATH) (where this is setting depends of what shell (sh, bash, etc) 
set and use export;
when i use a shared host i have this same problems.
i solve this explicity declaring all sys.path that i want.
you could solve this using virtualenv. you could find good samples at
http://lamsonproject.org/docs/ look at virtualenv.

verify what django-admin.py you are using (which django-admin.py)

only when i used this in sys.path all things worked.


example:
===

sys.path=[]
sys.path.insert(0,"/home/your-user/myform")
sys.path.append("/home/your-user/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg")
 
sys.path.append("/home/your-user/Django-1.5-py2.7.egg") 
sys.path.append("/home/your-user/Sphinx-1.2b1-py2.7.egg")
sys.path.append("/home/your-user/docutils-0.10-py2.7.egg") 
sys.path.append("/home/your-user/Jinja2-2.7-py2.7.egg")
sys.path.append("/home/your-user/Pygments-1.6-py2.7.egg") 
sys.path.append("/home/your-user/MarkupSafe-0.18-py2.7.egg") 
sys.path.append("/home/your-user/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg")
 
sys.path.append("/home/your-user/flup-1.0.3.dev_20110405-py2.7.egg") 
sys.path.append("/home/your-user/django_threaded_multihost-1.4_1-py2.7.egg") 
sys.path.append("/home/your-user/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg")
 
sys.path.append("/home/your-user/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg")
 
sys.path.append("/home/your-user/lib/python2.7/site-packages") 
sys.path.append("/home/your-user")
sys.path.append("/home/your-user/lib/python27.zip")
sys.path.append("/home/your-user/lib/python2.7")
sys.path.append("/home/your-user/lib/python2.7/plat-linux2")
sys.path.append("/home/your-user/lib/python2.7/lib-tk")
sys.path.append("/home/your-user/lib/python2.7/lib-old")
sys.path.append("/home/your-user/lib/python2.7/lib-dynload")
sys.path.append("/opt/python27/lib/python2.7")
sys.path.append("/opt/python27/lib/python2.7/plat-linux2")
sys.path.append("/opt/python27/lib/python2.7/lib-tk")


Em domingo, 21 de julho de 2013 20h38min08s UTC-3, Jay Lozier escreveu:
>
> I get this
>
> note: I have completely deleted any django packages on the my system and 
> could get any version but the dev version to even get past the first step.
> the dev 1.7 version would run django-admin.py startproject myfirstsite but 
> now python manage.py runserver does not work
> error in line 10
>
> /usr/lib/python2.7/site-packages/pymongo-2.5.1-py2.7-linux-x86_64.egg
> /usr/lib/python2.7/site-packages/bottle-0.11.6-py2.7.egg
> /usr/lib/python2.7/site-packages/translationstring-1.1-py2.7.egg
> /usr/lib/python2.7/site-packages/venusian-1.0a8-py2.7.egg
> /usr/lib/python2.7/site-packages/zope.deprecation-4.0.2-py2.7.egg
> /usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg
> /home/boopers/django-trunk
> /usr/lib/python27.zip
> /usr/lib64/python2.7
> /usr/lib64/python2.7/plat-linux2
> /usr/lib64/python2.7/lib-tk
> /usr/lib64/python2.7/lib-old
> /usr/lib64/python2.7/lib-dynload
> /usr/lib64/python2.7/site-packages
> /usr/lib64/python2.7/site-packages/FontTools
> /usr/lib64/python2.7/site-packages/PIL
> /usr/local/lib64/python2.7/site-packages
> /usr/local/lib/python2.7/site-packages
> /usr/lib64/python2.7/site-packages/gst-0.10
> /usr/lib64/python2.7/site-packages/gtk-2.0
> /usr/lib64/python2.7/site-packages/input-pad-1.0
> /usr/lib/python2.7/site-packages
> /usr/lib64/python2.7/site-packages/wx-2.9.4-gtk2
>
> On Saturday, July 20, 2013 5:55:21 PM UTC-4, Jay Lozier wrote:
>>
>> Using openSUSE 12.3
>> python 2.7.3
>> django 1.5.1 installed manually and verified
>>
>> When I enter "django-admin.py startproject mysite" at the command prompt 
>> I get the following traceback:
>>
>> Traceback (most recent call last):
>> File "/usr/bin/django-admin.py", line 5, in 
>> management.execute_from_command_line()
>> File 
>> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
>> 453, in execute_from_command_line
>> utility.execute()
>> File 
>> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
>> 392, in execute
>> self.fetch_command(subcommand).run_from_argv(self.argv)
>> File 
>> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
>> 272, in fetch_command
>> klass = load_command_class(app_name, subcommand)
>> File 
>> "/usr/lib/pyth

Re: django-admin.py startproject mysite error

2013-07-21 Thread Jay Lozier
I get this

note: I have completely deleted any django packages on the my system and 
could get any version but the dev version to even get past the first step.
the dev 1.7 version would run django-admin.py startproject myfirstsite but 
now python manage.py runserver does not work
error in line 10

/usr/lib/python2.7/site-packages/pymongo-2.5.1-py2.7-linux-x86_64.egg
/usr/lib/python2.7/site-packages/bottle-0.11.6-py2.7.egg
/usr/lib/python2.7/site-packages/translationstring-1.1-py2.7.egg
/usr/lib/python2.7/site-packages/venusian-1.0a8-py2.7.egg
/usr/lib/python2.7/site-packages/zope.deprecation-4.0.2-py2.7.egg
/usr/lib/python2.7/site-packages/setuptools-0.9.6-py2.7.egg
/home/boopers/django-trunk
/usr/lib/python27.zip
/usr/lib64/python2.7
/usr/lib64/python2.7/plat-linux2
/usr/lib64/python2.7/lib-tk
/usr/lib64/python2.7/lib-old
/usr/lib64/python2.7/lib-dynload
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/FontTools
/usr/lib64/python2.7/site-packages/PIL
/usr/local/lib64/python2.7/site-packages
/usr/local/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages/gst-0.10
/usr/lib64/python2.7/site-packages/gtk-2.0
/usr/lib64/python2.7/site-packages/input-pad-1.0
/usr/lib/python2.7/site-packages
/usr/lib64/python2.7/site-packages/wx-2.9.4-gtk2

On Saturday, July 20, 2013 5:55:21 PM UTC-4, Jay Lozier wrote:
>
> Using openSUSE 12.3
> python 2.7.3
> django 1.5.1 installed manually and verified
>
> When I enter "django-admin.py startproject mysite" at the command prompt I 
> get the following traceback:
>
> Traceback (most recent call last):
> File "/usr/bin/django-admin.py", line 5, in 
> management.execute_from_command_line()
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 453, in execute_from_command_line
> utility.execute()
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 272, in fetch_command
> klass = load_command_class(app_name, subcommand)
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 77, in load_command_class
> module = import_module('%s.management.commands.%s' % (app_name, name))
> File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 
> 35, in import_module
> __import__(name)
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/commands/startproject.py",
>  
> line 2, in 
> from django.core.management.templates import TemplateCommand
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/templates.py", 
> line 20, in 
> from django.template import Template, Context
> File "/usr/lib/python2.7/site-packages/django/template/__init__.py", line 
> 53, in 
> from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END,
> File "/usr/lib/python2.7/site-packages/django/template/base.py", line 18, 
> in 
> from django.utils.formats import localize
> File "/usr/lib/python2.7/site-packages/django/utils/formats.py", line 5, 
> in 
> from django.utils import dateformat, numberformat, datetime_safe
> File "/usr/lib/python2.7/site-packages/django/utils/dateformat.py", line 
> 25, in 
> from django.utils.timezone import is_aware, is_naive
> File "/usr/lib/python2.7/site-packages/django/utils/timezone.py", line 11, 
> in 
> import pytz
> File "/usr/lib/python2.7/site-packages/pytz/__init__.py", line 35, in 
> 
> from pkg_resources import resource_stream
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2978, in 
> 
> add_activation_listener(lambda dist: dist.activate())
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 709, in 
> subscribe
> callback(dist)
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2978, in 
> 
> add_activation_listener(lambda dist: dist.activate())
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2465, in 
> activate
> map(declare_namespace, self._get_metadata('namespace_packages.txt'))
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2045, in 
> declare_namespace
> _handle_ns(packageName, path_item)
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2010, in 
> _handle_ns
> raise TypeError("Not a package:", packageName)
> TypeError: ('Not a package:', 'cgi')
>
> How do I fix this?
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: django-admin.py startproject mysite error

2013-07-21 Thread gilberto dos santos alves
please what appear when you run this code:

python

import sys

for locals in sys.path:
 print locals



Em sábado, 20 de julho de 2013 18h55min21s UTC-3, Jay Lozier escreveu:
>
> Using openSUSE 12.3
> python 2.7.3
> django 1.5.1 installed manually and verified
>
> When I enter "django-admin.py startproject mysite" at the command prompt I 
> get the following traceback:
>
> Traceback (most recent call last):
> File "/usr/bin/django-admin.py", line 5, in 
> management.execute_from_command_line()
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 453, in execute_from_command_line
> utility.execute()
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 392, in execute
> self.fetch_command(subcommand).run_from_argv(self.argv)
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 272, in fetch_command
> klass = load_command_class(app_name, subcommand)
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
> 77, in load_command_class
> module = import_module('%s.management.commands.%s' % (app_name, name))
> File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 
> 35, in import_module
> __import__(name)
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/commands/startproject.py",
>  
> line 2, in 
> from django.core.management.templates import TemplateCommand
> File 
> "/usr/lib/python2.7/site-packages/django/core/management/templates.py", 
> line 20, in 
> from django.template import Template, Context
> File "/usr/lib/python2.7/site-packages/django/template/__init__.py", line 
> 53, in 
> from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END,
> File "/usr/lib/python2.7/site-packages/django/template/base.py", line 18, 
> in 
> from django.utils.formats import localize
> File "/usr/lib/python2.7/site-packages/django/utils/formats.py", line 5, 
> in 
> from django.utils import dateformat, numberformat, datetime_safe
> File "/usr/lib/python2.7/site-packages/django/utils/dateformat.py", line 
> 25, in 
> from django.utils.timezone import is_aware, is_naive
> File "/usr/lib/python2.7/site-packages/django/utils/timezone.py", line 11, 
> in 
> import pytz
> File "/usr/lib/python2.7/site-packages/pytz/__init__.py", line 35, in 
> 
> from pkg_resources import resource_stream
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2978, in 
> 
> add_activation_listener(lambda dist: dist.activate())
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 709, in 
> subscribe
> callback(dist)
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2978, in 
> 
> add_activation_listener(lambda dist: dist.activate())
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2465, in 
> activate
> map(declare_namespace, self._get_metadata('namespace_packages.txt'))
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2045, in 
> declare_namespace
> _handle_ns(packageName, path_item)
> File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2010, in 
> _handle_ns
> raise TypeError("Not a package:", packageName)
> TypeError: ('Not a package:', 'cgi')
>
> How do I fix this?
>

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




django-admin.py startproject mysite error

2013-07-20 Thread Jay Lozier
Using openSUSE 12.3
python 2.7.3
django 1.5.1 installed manually and verified

When I enter "django-admin.py startproject mysite" at the command prompt I 
get the following traceback:

Traceback (most recent call last):
File "/usr/bin/django-admin.py", line 5, in 
management.execute_from_command_line()
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", 
line 453, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", 
line 392, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", 
line 272, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/lib/python2.7/site-packages/django/core/management/__init__.py", 
line 77, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, 
in import_module
__import__(name)
File 
"/usr/lib/python2.7/site-packages/django/core/management/commands/startproject.py",
 
line 2, in 
from django.core.management.templates import TemplateCommand
File 
"/usr/lib/python2.7/site-packages/django/core/management/templates.py", 
line 20, in 
from django.template import Template, Context
File "/usr/lib/python2.7/site-packages/django/template/__init__.py", line 
53, in 
from django.template.base import (ALLOWED_VARIABLE_CHARS, BLOCK_TAG_END,
File "/usr/lib/python2.7/site-packages/django/template/base.py", line 18, 
in 
from django.utils.formats import localize
File "/usr/lib/python2.7/site-packages/django/utils/formats.py", line 5, in 

from django.utils import dateformat, numberformat, datetime_safe
File "/usr/lib/python2.7/site-packages/django/utils/dateformat.py", line 
25, in 
from django.utils.timezone import is_aware, is_naive
File "/usr/lib/python2.7/site-packages/django/utils/timezone.py", line 11, 
in 
import pytz
File "/usr/lib/python2.7/site-packages/pytz/__init__.py", line 35, in 

from pkg_resources import resource_stream
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2978, in 

add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 709, in 
subscribe
callback(dist)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2978, in 

add_activation_listener(lambda dist: dist.activate())
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2465, in 
activate
map(declare_namespace, self._get_metadata('namespace_packages.txt'))
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2045, in 
declare_namespace
_handle_ns(packageName, path_item)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2010, in 
_handle_ns
raise TypeError("Not a package:", packageName)
TypeError: ('Not a package:', 'cgi')

How do I fix this?

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.




Re: django-admin.py startproject mysite

2013-04-12 Thread Nick D
It looks like the path to django-admin.py is not in your system path.
 
You can try using the absolute path. ie: 
/usr/lb/python2.7/dist-packages/django/bin/django-admin.py startproject 
mysite
 
The tutorial also gives the following advice:
 
“command not found: django-admin.py”

*django-admin.py* 
<https://docs.djangoproject.com/en/1.5/ref/django-admin/>should be on your 
system path if you installed Django via 
python setup.py. If it’s not on your path, you can find it in 
site-packages/django/bin, where site-packages is a directory within your 
Python installation. Consider symlinking to 
*django-admin.py*<https://docs.djangoproject.com/en/1.5/ref/django-admin/>from 
some place on your path, such as
/usr/local/bin.


On Friday, April 12, 2013 10:34:11 AM UTC-7, Kevin Le Bouthillier wrote:

> django-admin.py startproject mysite
>
>
> unrecognized command. Why is the python+django setup instructions so unclear? 
>
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: django-admin.py startproject mysite

2013-04-12 Thread James Bennett
The tutorial mentions the most common issues:

* django-admin.py not on your path
* django-admin.py lacking executable permission
* django-admin.py was renamed by your operating system distributor

It also explains how to solve each of those issues.

Have you tried the suggested solutions the tutorial provides?

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




django-admin.py startproject mysite

2013-04-12 Thread Kevin Le Bouthillier


django-admin.py startproject mysite


unrecognized command. Why is the python+django setup instructions so unclear? 

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: django-admin.py startproject mysite... this command does nothing for me

2012-07-23 Thread Ramiro Morales
On Mon, Jul 23, 2012 at 4:58 PM, boxxtcy  wrote:
> I tried without the .py, still doesn't do anything.  django-admin.py lives
> in my C:\Python27\Scripts  just as it is supposed to.  I don't really see
> what the issue is :/

Don't rely on the association of .py files with the Python interpeter
and executability of .py files features provided by the OS.

Simply specify the full path to the django-admin.py script
(and if needed, the full path to the Python interpeter).

As in:

python C:\Python27\Scripts\django-admin.py startproject foo

or

C:\Python27\python C:\Python27\Scripts\django-admin.py startproject foo

The basic concepts will always work. The above techniques will allow
you to execute script in any interpreted language on any platform.

HTH

-- 
Ramiro Morales

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite... this command does nothing for me

2012-07-23 Thread boxxtcy
I tried without the .py, still doesn't do anything.  django-admin.py lives 
in my C:\Python27\Scripts  just as it is supposed to.  I don't really see 
what the issue is :/

On Monday, July 23, 2012 2:59:18 PM UTC-4, Joel Goldstick wrote:
>
> On Mon, Jul 23, 2012 at 12:38 PM, boxxtcy <wjh...@gmail.com> wrote: 
> > When trying to follow this tutorial, I get stuck after django-admin.py 
> > startproject mysite because no directory is created.  I doubt the 
> command is 
> > even being executed, all it brings up is the code in a notepad++ window. 
>  I 
> > have django installed properly because I can go to my python interpreter 
> and 
> > type 'import django' and print the version.  I have two different Python 
> > installs 2.6 and 2.7.3  I am using 2.7.3 and I no longer use 2.6.  Could 
> > having multiple versions of Python affect Django?  Please help! 
> > 
>
> Did you check all the caveats in the boxs below the initial 
> instructions?  sounds like django-admin.py isn't being run.  Try it 
> without the .py.  If that fails, see if you can find where it is and 
> if its in your path 
>
> > -- 
> > 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/-/6qtT4QQ6FPQJ. 
> > To post to this group, send email to django-users@googlegroups.com. 
> > To unsubscribe from this group, send email to 
> > django-users+unsubscr...@googlegroups.com. 
> > For more options, visit this group at 
> > http://groups.google.com/group/django-users?hl=en. 
>
>
>
> -- 
> Joel Goldstick 
>

-- 
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/-/RAwHipg-OqoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite... this command does nothing for me

2012-07-23 Thread Joel Goldstick
On Mon, Jul 23, 2012 at 12:38 PM, boxxtcy <wjh...@gmail.com> wrote:
> When trying to follow this tutorial, I get stuck after django-admin.py
> startproject mysite because no directory is created.  I doubt the command is
> even being executed, all it brings up is the code in a notepad++ window.  I
> have django installed properly because I can go to my python interpreter and
> type 'import django' and print the version.  I have two different Python
> installs 2.6 and 2.7.3  I am using 2.7.3 and I no longer use 2.6.  Could
> having multiple versions of Python affect Django?  Please help!
>

Did you check all the caveats in the boxs below the initial
instructions?  sounds like django-admin.py isn't being run.  Try it
without the .py.  If that fails, see if you can find where it is and
if its in your path

> --
> 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/-/6qtT4QQ6FPQJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.



-- 
Joel Goldstick

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django-admin.py startproject mysite... this command does nothing for me

2012-07-23 Thread boxxtcy
When trying to follow this 
tutorial<https://docs.djangoproject.com/en/1.4/intro/tutorial01/>, 
I get stuck after django-admin.py startproject mysite because no directory 
is created.  I doubt the command is even being executed, all it brings up 
is the code in a notepad++ window.  I have django installed properly 
because I can go to my python interpreter and type 'import django' and 
print the version.  I have two different Python installs 2.6 and 2.7.3  I 
am using 2.7.3 and I no longer use 2.6.  Could having multiple versions of 
Python affect Django?  Please help!

-- 
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/-/6qtT4QQ6FPQJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2012-06-19 Thread Seyfullah Tıkıç
http://stackoverflow.com/questions/2870262/django-admin-py-startproject-mysite-not-working-well-on-windows-7
solved
my problem.

2012/6/19 Seyfullah Tıkıç 

> Yes, I use an admin account. Python.exe is in my path as "c:\Python27". Ok
> I will try python   way.
>
> Thank you.
>
>
> 2012/6/19 Dennis Lee Bieber 
>
>> On Tue, 19 Jun 2012 08:41:55 +0300, Seyfullah Tıkıç 
>> declaimed the following in gmane.comp.python.django.user:
>>
>> > Ok, now I did it as you said. It is the same :
>> > C:\Python27\MyFiles>assoc .py=py_auto_file
>> > .py=py_auto_file
>> > C:\Python27\MyFiles>ftype py_auto_file="C:\Python27\python.exe" "%1" %*
>> > py_auto_file="C:\Python27\python.exe" "%1" %*
>> > C:\Python27\MyFiles>t.py a s d
>> > Argument 0 is   C:\Python27\MyFiles\t.py
>> > There is something wrong, but I couldn't understand.
>> >
>> The only thing left is to ask if you are doing those statements
>> from
>> an Administration account? It may be that they aren't "sticking" due to
>> "all user" and "local user" conflicts in the registry.
>>
>>
>>If that doesn't help, my recommendation is to just stop trying to
>> run Python scripts by supplying only the script name... use
>>
>>python  
>>
>> (python.exe /is/ found in your search path, is it not?)
>> --
>>Wulfraed Dennis Lee Bieber AF6VN
>>wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>>
>> --
>> 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 unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>>
>
>
> --
> SEYFULLAH TIKIÇ
>



-- 
SEYFULLAH TIKIÇ

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2012-06-19 Thread Seyfullah Tıkıç
Yes, I use an admin account. Python.exe is in my path as "c:\Python27". Ok
I will try python   way.

Thank you.


2012/6/19 Dennis Lee Bieber 

> On Tue, 19 Jun 2012 08:41:55 +0300, Seyfullah Tıkıç 
> declaimed the following in gmane.comp.python.django.user:
>
> > Ok, now I did it as you said. It is the same :
> > C:\Python27\MyFiles>assoc .py=py_auto_file
> > .py=py_auto_file
> > C:\Python27\MyFiles>ftype py_auto_file="C:\Python27\python.exe" "%1" %*
> > py_auto_file="C:\Python27\python.exe" "%1" %*
> > C:\Python27\MyFiles>t.py a s d
> > Argument 0 is   C:\Python27\MyFiles\t.py
> > There is something wrong, but I couldn't understand.
> >
> The only thing left is to ask if you are doing those statements
> from
> an Administration account? It may be that they aren't "sticking" due to
> "all user" and "local user" conflicts in the registry.
>
>
>If that doesn't help, my recommendation is to just stop trying to
> run Python scripts by supplying only the script name... use
>
>python  
>
> (python.exe /is/ found in your search path, is it not?)
> --
>Wulfraed Dennis Lee Bieber AF6VN
>wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
SEYFULLAH TIKIÇ

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2012-06-18 Thread Seyfullah Tıkıç
Ok, now I did it as you said. It is the same :
C:\Python27\MyFiles>assoc .py=py_auto_file
.py=py_auto_file
C:\Python27\MyFiles>ftype py_auto_file="C:\Python27\python.exe" "%1" %*
py_auto_file="C:\Python27\python.exe" "%1" %*
C:\Python27\MyFiles>t.py a s d
Argument 0 is   C:\Python27\MyFiles\t.py
There is something wrong, but I couldn't understand.

2012/6/19 Dennis Lee Bieber 

> On Tue, 19 Jun 2012 00:23:06 +0300, Seyfullah Tıkıç 
> declaimed the following in gmane.comp.python.django.user:
>
> > Thank you for suggestions. What I have done is as follows : The problem
> > still exists, what can I do next?
> >
> > C:\Users\syftkc>assoc .py .py=py_auto_file
> > .py .py=py_auto_file
> >
> Why the double ".py .py"? It should just be a single term which is
> the extension of the file...
>
> > C:\Users\syftkc>ftype py_auto_file py_auto_file="C:\Python27\python.exe"
> > "%1" %
> >
> > py_auto_file py_auto_file="C:\Python27\python.exe" "%1" %*
> >
> Same here -- it should just be a single occurrence of the type.
> --
>Wulfraed Dennis Lee Bieber AF6VN
>wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
SEYFULLAH TIKIÇ

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2012-06-18 Thread Seyfullah Tıkıç
Thank you for suggestions. What I have done is as follows : The problem
still exists, what can I do next?

C:\Users\syftkc>assoc .py .py=py_auto_file
.py .py=py_auto_file

C:\Users\syftkc>ftype py_auto_file py_auto_file="C:\Python27\python.exe"
"%1" %

py_auto_file py_auto_file="C:\Python27\python.exe" "%1" %*

C:\Users\syftkc>cd C:\Python27\MyFiles

C:\Python27\MyFiles>t.py a s d
Argument 0 is   C:\Python27\MyFiles\t.py

C:\Python27\MyFiles>..\Python.exe t.py a s d
Argument 0 is   t.py
Argument 1 is   a
Argument 2 is   s
Argument 3 is   d

C:\Python27\MyFiles>t.py a s d
Argument 0 is   C:\Python27\MyFiles\t.py


2012/6/18 Dennis Lee Bieber 

> On Mon, 18 Jun 2012 20:35:35 +0300, Seyfullah Tıkıç 
> declaimed the following in gmane.comp.python.django.user:
>
> > I created a file named t.py and wrote what you wrote.
> > In the first step, I see this :
> > C:\Python27\MyFiles>t.py a one and a two
> > Argument 0 is   C:\Python27\MyFiles\t.py
> >
> If that is ALL that you see, then it indicates that on you computer
> configuration, script files that are not natively executable (that is,
> .py invokes python.exe passing the .py name) is NOT passing any other
> arguments.
>
>The fast solution should be to explicitly invoke the Python
> interpreter:
>
> > python t.py arguments...
>
>
>The longer solution gets esoteric... See my example:
>
> E:\UserData\Wulfraed\My Documents>assoc .py
> .py=py_auto_file
>
> E:\UserData\Wulfraed\My Documents>ftype py_auto_file
> py_auto_file="E:\Python25\python.exe" "%1" %*
>
> E:\UserData\Wulfraed\My Documents>
>
>
>Use "assoc" to find out what "file type" .py is considered by the
> OS...
>
>Use "ftype" with that "file type" to see what the execution command
> line becomes.
>
>I suspect what you will find is that your system does NOT have the
> last
>%*
> term on the command. That is what passes the rest of the command line to
> python.
>
>If so, enter
> ftype ="your-python-path-executable" "%1" %*
>
>Then retest with the t.py file and see if the rest of the arguments
> are passed.
> --
>Wulfraed Dennis Lee Bieber AF6VN
>wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
SEYFULLAH TIKIÇ

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2012-06-18 Thread Seyfullah Tıkıç
Any suggestions please?

2012/6/18 Seyfullah Tıkıç 

> Yes, I restarted my computer.
>
>
> 2012/6/18 şahin mersin 
>
>> Did you restart your computer?
>>
>> --
>> 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 unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> --
> SEYFULLAH TIKIÇ
>



-- 
SEYFULLAH TIKIÇ

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2012-06-18 Thread Seyfullah Tıkıç
Yes, I restarted my computer.

2012/6/18 şahin mersin 

> Did you restart your computer?
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
SEYFULLAH TIKIÇ

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2012-06-18 Thread Seyfullah Tıkıç
I created a file named t.py and wrote what you wrote.
In the first step, I see this :
C:\Python27\MyFiles>t.py a one and a two
Argument 0 is   C:\Python27\MyFiles\t.py


2012/6/18 Dennis Lee Bieber <wlfr...@ix.netcom.com>

> On Sun, 17 Jun 2012 15:54:39 -0700 (PDT), stikic <sti...@gmail.com>
> declaimed the following in gmane.comp.python.django.user:
>
> > Hello,
> >
> > I installed django and added it to my PATH in windows. When I run
> > django-admin.py startproject mysite as follows, I get error. How can I
>
> What error?
>
> > solve this?:
> > C:\Python27\MyFiles\mysite>C:\Python27\Lib\site-packages\django\bin
> > \django-admin
> > .py startproject mysite
> > Usage: django-admin.py subcommand [options] [args]
> >
> > Options:
>
> This appears to be the normal command line help given when
> parameters are not found
>
>The cut above doesn't help as one can't determine if the ".py"
> on the next line is a result of an accidental space after django-admin.
>
>The OTHER candidate is that Windows sometimes has trouble passing
> command line arguments or I/O redirection when a program is not directly
> executable but activates an interpreter -- though it appears my system
> handles it okay:
>
> E:\UserData\Wulfraed\MYDOCU~1>type t.py
> import sys
>
> for i,a in enumerate(sys.argv):
>print "Argument %s is\t%s" % (i, a)
>
>
> E:\UserData\Wulfraed\MYDOCU~1>t.py a one and a two
> Argument 0 is   E:\UserData\Wulfraed\MYDOCU~1\t.py
> Argument 1 is   a
> Argument 2 is   one
> Argument 3 is   and
> Argument 4 is   a
> Argument 5 is   two
>
> E:\UserData\Wulfraed\MYDOCU~1>t three or more
> Argument 0 is   E:\UserData\Wulfraed\MYDOCU~1\t.py
> Argument 1 is   three
> Argument 2 is   or
> Argument 3 is   more
>
> E:\UserData\Wulfraed\MYDOCU~1>python t four is what
> python: can't open file 't': [Errno 2] No such file or directory
>
> E:\UserData\Wulfraed\MYDOCU~1>python t.py four is what
> Argument 0 is   t.py
> Argument 1 is   four
> Argument 2 is   is
> Argument 3 is   what
>
> E:\UserData\Wulfraed\MYDOCU~1>
>
>Suggest you try creating a test script (as in the above t.py) and
> execute it in the various versions shown above. Obviously your system is
> finding the Python interpreter, but the arguments are not being found by
> the script (or that .py IS separated by a space and is being seen as the
> first command to the script -- and that is not recognized)
>
>
> --
>Wulfraed Dennis Lee Bieber AF6VN
>wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>


-- 
SEYFULLAH TIKIÇ

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2012-06-17 Thread şahin mersin
Did you restart your computer?

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django-admin.py startproject mysite

2012-06-17 Thread stikic
Hello,

I installed django and added it to my PATH in windows. When I run
django-admin.py startproject mysite as follows, I get error. How can I
solve this?:
C:\Python27\MyFiles\mysite>C:\Python27\Lib\site-packages\django\bin
\django-admin
.py startproject mysite
Usage: django-admin.py subcommand [options] [args]

Options:
  -v VERBOSITY, --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal
output,
2=verbose output, 3=very verbose output
  --settings=SETTINGS   The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't
provided, the
DJANGO_SETTINGS_MODULE environment variable
will be
used.
  --pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
  --traceback   Print traceback on exception
  --version show program's version number and exit
  -h, --helpshow this help message and exit

Type 'django-admin.py help ' for help on a specific
subcommand.

Available subcommands:

[django]
cleanup
compilemessages
createcachetable
dbshell
diffsettings
dumpdata
flush
inspectdb
loaddata
makemessages
reset
runfcgi
runserver
shell
sql
sqlall
sqlclear
sqlcustom
sqlflush
sqlindexes
sqlinitialdata
sqlreset
sqlsequencereset
startapp
startproject
syncdb
test
testserver
validate

Thank you.

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2011-05-01 Thread Daisy
yes.I have installed it with the setuptools (python setup.py install)
is that affect in my issue?


On Apr 30, 5:25 pm, Yongning Liang <liangyongn...@gmail.com> wrote:
> if you tried the command django-admin.py startproject mysite and it output
> the usage, it mean the PATH of Python and django-admin.py is correct, maybe
> you type a wrong subcommand.
> BTW, are you install Django with setuptools(python setup.py install)?
>
>
>
>
>
>
>
> On Sat, Apr 30, 2011 at 10:16 PM, Daisy <omnia.za...@gmail.com> wrote:
> > I have just did what you said and  the result was (no project created)
> > and the output was:
> > 
>
> > Usage: django-admin.py subcommand [options] [args]
>
> > Options:
> >  -v VERBOSITY, --verbosity=VERBOSITY
> >                        Verbosity level; 0=minimal output, 1=normal
> > output,
> >                        2=all output
> >  --settings=SETTINGS   The Python path to a settings module, e.g.
> >                        "myproject.settings.main". If this isn't
> > provided, the
> >                        DJANGO_SETTINGS_MODULE environment variable
> > will be
> >                        used.
> >  --pythonpath=PYTHONPATH
> >                        A directory to add to the Python path, e.g.
> >                        "/home/djangoprojects/myproject".
> >  --traceback           Print traceback on exception
> >  --version             show program's version number and exit
> >  -h, --help            show this help message and exit
>
> > Type 'django-admin.py help ' for help on a specific
> > subcommand.
>
> > Available subcommands:
> >  cleanup
> >  compilemessages
> >  createcachetable
> >  dbshell
> >  diffsettings
> >  dumpdata
> >  flush
> >  inspectdb
> >  loaddata
> >  makemessages
> >  reset
> >  runfcgi
> >  runserver
> >  shell
> >  sql
> >  sqlall
> >  sqlclear
> >  sqlcustom
> >  sqlflush
> >  sqlindexes
> >  sqlinitialdata
> >  sqlreset
> >  sqlsequencereset
> >  startapp
> >  startproject
> >  syncdb
> >  test
> >  testserver
> >  validate
> > 
>
> > while surfing the net I found this solution, write in the console
>
> > python C:\Python27\Scripts\django-admin.py startproject mysite
>
> > I don't know if there is another solution instead of writing the above
> > line every time or not.
>
> > thanks for help.
>
> > --
> > 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 unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2011-04-30 Thread Yongning Liang
if you tried the command django-admin.py startproject mysite and it output
the usage, it mean the PATH of Python and django-admin.py is correct, maybe
you type a wrong subcommand.
BTW, are you install Django with setuptools(python setup.py install)?

On Sat, Apr 30, 2011 at 10:16 PM, Daisy <omnia.za...@gmail.com> wrote:

> I have just did what you said and  the result was (no project created)
> and the output was:
> 
>
>
> Usage: django-admin.py subcommand [options] [args]
>
> Options:
>  -v VERBOSITY, --verbosity=VERBOSITY
>Verbosity level; 0=minimal output, 1=normal
> output,
>2=all output
>  --settings=SETTINGS   The Python path to a settings module, e.g.
>"myproject.settings.main". If this isn't
> provided, the
>DJANGO_SETTINGS_MODULE environment variable
> will be
>used.
>  --pythonpath=PYTHONPATH
>A directory to add to the Python path, e.g.
>"/home/djangoprojects/myproject".
>  --traceback   Print traceback on exception
>  --version show program's version number and exit
>  -h, --helpshow this help message and exit
>
> Type 'django-admin.py help ' for help on a specific
> subcommand.
>
> Available subcommands:
>  cleanup
>  compilemessages
>  createcachetable
>  dbshell
>  diffsettings
>  dumpdata
>  flush
>  inspectdb
>  loaddata
>  makemessages
>  reset
>  runfcgi
>  runserver
>  shell
>  sql
>  sqlall
>  sqlclear
>  sqlcustom
>  sqlflush
>  sqlindexes
>  sqlinitialdata
>  sqlreset
>  sqlsequencereset
>  startapp
>  startproject
>  syncdb
>  test
>  testserver
>  validate
> 
>
> while surfing the net I found this solution, write in the console
>
> python C:\Python27\Scripts\django-admin.py startproject mysite
>
>
> I don't know if there is another solution instead of writing the above
> line every time or not.
>
> thanks for help.
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2011-04-30 Thread Daisy
I have just did what you said and  the result was (no project created)
and the output was:



Usage: django-admin.py subcommand [options] [args]

Options:
  -v VERBOSITY, --verbosity=VERBOSITY
Verbosity level; 0=minimal output, 1=normal
output,
2=all output
  --settings=SETTINGS   The Python path to a settings module, e.g.
"myproject.settings.main". If this isn't
provided, the
DJANGO_SETTINGS_MODULE environment variable
will be
used.
  --pythonpath=PYTHONPATH
A directory to add to the Python path, e.g.
"/home/djangoprojects/myproject".
  --traceback   Print traceback on exception
  --version show program's version number and exit
  -h, --helpshow this help message and exit

Type 'django-admin.py help ' for help on a specific
subcommand.

Available subcommands:
  cleanup
  compilemessages
  createcachetable
  dbshell
  diffsettings
  dumpdata
  flush
  inspectdb
  loaddata
  makemessages
  reset
  runfcgi
  runserver
  shell
  sql
  sqlall
  sqlclear
  sqlcustom
  sqlflush
  sqlindexes
  sqlinitialdata
  sqlreset
  sqlsequencereset
  startapp
  startproject
  syncdb
  test
  testserver
  validate


while surfing the net I found this solution, write in the console

python C:\Python27\Scripts\django-admin.py startproject mysite


I don't know if there is another solution instead of writing the above
line every time or not.

thanks for help.

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2011-04-30 Thread Yongning Liang
The path of django-admin.py is *YOUR_PYTHON_PATH*
\Lib\site-packages\django\bin
after this, you can just type django-admin.py startproject mysite to start a
project.
but make sure that your .py file default open by Python, if not,
right-click(Shift + right-click in XP) a .py file and select open with...,
choose Python, or remove file association in you Notepad++
On Sat, Apr 30, 2011 at 5:39 PM, Daisy <omnia.za...@gmail.com> wrote:

> Thank you for your reply,
> Python is in my system PATH but How to add django-admin in my path. I
> mean what will be the enviroment variable for django-admin that i have
> to put in my system PATH?
>
> On Apr 30, 4:37 am, Yongning Liang <liangyongn...@gmail.com> wrote:
> > type this in Windows
> > python django-admin.py startproject mysite
> > if it doesn't work, make sure that both python and django-admin in you
> > system PATH
> >
> >
> >
> >
> >
> >
> >
> > On Sat, Apr 30, 2011 at 5:38 AM, Daisy <omnia.za...@gmail.com> wrote:
> > > Greetings all;
> >
> > > I have a problem also with the "django-admin.py startproject mysite"
> > > command
> >
> > > when i type it, it didn't create the directory mysite instead it opens
> > > the django-admin.py in a notepad++
> >
> > > I don't know how to fix this?
> > > any ideas please.
> >
> > > --
> > > 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 unsubscribe from this group, send email to
> > > django-users+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/django-users?hl=en.
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2011-04-30 Thread Daisy
Thank you for your reply,
Python is in my system PATH but How to add django-admin in my path. I
mean what will be the enviroment variable for django-admin that i have
to put in my system PATH?

On Apr 30, 4:37 am, Yongning Liang <liangyongn...@gmail.com> wrote:
> type this in Windows
> python django-admin.py startproject mysite
> if it doesn't work, make sure that both python and django-admin in you
> system PATH
>
>
>
>
>
>
>
> On Sat, Apr 30, 2011 at 5:38 AM, Daisy <omnia.za...@gmail.com> wrote:
> > Greetings all;
>
> > I have a problem also with the "django-admin.py startproject mysite"
> > command
>
> > when i type it, it didn't create the directory mysite instead it opens
> > the django-admin.py in a notepad++
>
> > I don't know how to fix this?
> > any ideas please.
>
> > --
> > 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 unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/django-users?hl=en.

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2011-04-29 Thread Yongning Liang
type this in Windows
python django-admin.py startproject mysite
if it doesn't work, make sure that both python and django-admin in you
system PATH

On Sat, Apr 30, 2011 at 5:38 AM, Daisy <omnia.za...@gmail.com> wrote:

> Greetings all;
>
> I have a problem also with the "django-admin.py startproject mysite"
> command
>
> when i type it, it didn't create the directory mysite instead it opens
> the django-admin.py in a notepad++
>
> I don't know how to fix this?
> any ideas please.
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2011-04-29 Thread Daisy
Greetings all;

I have a problem also with the "django-admin.py startproject mysite"
command

when i type it, it didn't create the directory mysite instead it opens
the django-admin.py in a notepad++

I don't know how to fix this?
any ideas please.

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2011-04-05 Thread Karen Tracey
On Mon, Apr 4, 2011 at 4:11 AM, Santiago Caracol  wrote:

> Does the Django tutorial still match reality?


Yes, startproject is still a valid command for django-admin.py. Do you have
the environment variable DJANGO_SETTINGS_MODULE set to something? That would
cause the behavior you are seeing, per:
http://docs.djangoproject.com/en/dev/ref/django-admin/#startproject-projectname

Karen
-- 
http://tracey.org/kmt/

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-admin.py startproject mysite

2011-04-04 Thread Jiten Singh
Hi Santiago,

I think there is some problem in your installation of Django 1.3 , i
installed it myself and there is no problem with

*django-admin.py startproject mysite*

even the help of django-admin-py lists startproject command

I think  re-installation can work.



*Best Regards,
Jitendra
_discover the power of opensource*


On Mon, Apr 4, 2011 at 1:41 PM, Santiago Caracol <santiago.cara...@gmail.com
> wrote:

> Hello,
>
> the Django (1.3) tutorial says:
>
> From the command line, cd into a directory where you’d like to store
> your code, then run the command django-admin.py startproject mysite.
> This will create a mysite directory in your current directory.
>
> When I run
>
> django-admin.py startproject mysite,
>
> I get this error:
>
> Unknown command: 'startproject'
> Type 'django-admin.py help' for usage.
>
>
> Using django-admin.py help, I get these subcommands:
>
> Available subcommands:
>  changepassword
>  cleanup
>  collectstatic
>  compilemessages
>  createcachetable
>  createsuperuser
>  dbshell
>  diffsettings
>  dumpdata
>  findstatic
>  flush
>  inspectdb
>  loaddata
>  makemessages
>  reset
>  runfcgi
>  runserver
>  shell
>  sql
>  sqlall
>  sqlclear
>  sqlcustom
>  sqlflush
>  sqlindexes
>  sqlinitialdata
>  sqlreset
>  sqlsequencereset
>  startapp
>  syncdb
>  test
>  testserver
>  validate
>
> Does the Django tutorial still match reality?
>
> Santiago
>
> --
> 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 unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django-admin.py startproject mysite

2011-04-04 Thread Santiago Caracol
Hello,

the Django (1.3) tutorial says:

>From the command line, cd into a directory where you’d like to store
your code, then run the command django-admin.py startproject mysite.
This will create a mysite directory in your current directory.

When I run

django-admin.py startproject mysite,

I get this error:

Unknown command: 'startproject'
Type 'django-admin.py help' for usage.


Using django-admin.py help, I get these subcommands:

Available subcommands:
  changepassword
  cleanup
  collectstatic
  compilemessages
  createcachetable
  createsuperuser
  dbshell
  diffsettings
  dumpdata
  findstatic
  flush
  inspectdb
  loaddata
  makemessages
  reset
  runfcgi
  runserver
  shell
  sql
  sqlall
  sqlclear
  sqlcustom
  sqlflush
  sqlindexes
  sqlinitialdata
  sqlreset
  sqlsequencereset
  startapp
  syncdb
  test
  testserver
  validate

Does the Django tutorial still match reality?

Santiago

-- 
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 unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.