i think that u need to set 'myApp' in INSTALLED_APPS
something like:
> 'django.contrib.admin',
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.messages',
> 'django.contrib.staticfiles',
> 'myApp'
--
Rafael E. Ferrero
2015-10-09 16:39 GMT
I create question
in
http://stackoverflow.com/questions/32999054/dont-run-python-manage-py-syncdb.
Any one can answer it?
--
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 a
Thanks Russell, that's clear now.
Cheers,
Dan
在 2015年3月20日星期五 UTC-5下午6:27:12,Russell Keith-Magee写道:
>
>
> On Sat, Mar 21, 2015 at 5:25 AM, Dan Dong
> > wrote:
>
>> Hi,
>> Does anybody know how to supply the input parameters to "python
>> manage
On Sat, Mar 21, 2015 at 5:25 AM, Dan Dong wrote:
> Hi,
> Does anybody know how to supply the input parameters to "python
> manage.py syncdb" from a script? E.g, to set the the followings parameters:
>
> Would you like to create one now? (yes/no): yes
> Userna
Hi,
Does anybody know how to supply the input parameters to "python manage.py
syncdb" from a script? E.g, to set the the followings parameters:
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'root'):
Email address: x
Password: xx
when i try to suncdb db i get this error below
You just installed Django's auth system, which means you don't have any
superusers defined.
Would you like to create one now? (yes/no): yes
Traceback (most recent call last):
File "manage.py", line 10, in
execute_from_command_line(sys.argv)
pyBB and after following steps mentioned at their website, I am
getting following error when I am running python manage.py syncdb
[aloknag-mbp15:~/Desktop/forum] aloknag% ./manage.py syncdb
/Library/Python/2.7/site-packages/django_common-0.1.51-py2.7.egg/common/fields.py:6:
DeprecationWarning
error when I am running python manage.py syncdb
>
> [aloknag-mbp15:~/Desktop/forum] aloknag% ./manage.py syncdb
>
> /Library/Python/2.7/site-packages/django_common-0.1.51-py2.7.egg/common/fields.py:6:
> DeprecationWarning: django.utils.simplejson is deprecated; use json instead.
>
>
Hello Experts,
I am newbie to Django/Python. I am trying to setup a forum app using pyBB
and after following steps mentioned at their website, I am getting
following error when I am running python manage.py syncdb
[aloknag-mbp15:~/Desktop/forum] aloknag% ./manage.py syncdb
/Library/Python/2.7
Never import Django stuff in your settings (except core.exceptions) unless you
REALLY know what you are doing
--
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 dj
tings (e.g. importing models)
and that causes the problem
There might be other cases but I suggest you should double-check your
settings first.
On Wednesday, 11 September 2013 09:46:35 UTC+1, Gabriele Angeli wrote:
>
> Hi guys i have the following errors when edit python manage.py syncdb
djangoproject.com/en/dev/ref/django-admin/
On Wednesday, 11 September 2013 14:16:35 UTC+5:30, Gabriele Angeli wrote:
>
> Hi guys i have the following errors when edit python manage.py syncdb :
>
> Traceback (most recent call last):
> File "manage.py", line 11, in
>
Hi guys i have the following errors when edit python manage.py syncdb :
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 469
st import the MySQLdb into
> python interpreter it succes i can also connect to the db, i also can
> import django
>
> python manage.py runserver works fine, i can acces to the page
> but python manage.py syncdb just do nothing and i don't understand or
> succes to f
import the MySQLdb into
python interpreter it succes i can also connect to the db, i also can
import django
python manage.py runserver works fine, i can acces to the page
but python manage.py syncdb just do nothing and i don't understand or
succes to figure why.
i got the debug on, i t
o which
> I had no solution.
>
> *$ python manage.py syncdb*
> *OverflowError: Python int too large to convert to C long*
>
> I'm using OS X 10.8, and Django 1.5, Python 2.7.2.
>
> Could you help me?
>
> Thanks,
> Ke
>
--
You received this message becau
Hi,
I'm new to Django. I was trying to follow the tutorial to set up Django.
When I was trying to do "syncdb" operation, I got an error message to which
I had no solution.
*$ python manage.py syncdb*
*OverflowError: Python int too large to convert to C long*
I'm using OS X
Not a PATH issue, but a PYTHONPATH issue.
Run "python manage.py shell" and try to import 'messages.'
I suspect it's not where you think it is, or its location is not on your
PYTHONPATH.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To pos
Ya, it is probably a path issue. It is set as this by the way -->
['',
'/usr/lib64/python2.4/site-packages/MySQL_python-1.2.3c1-py2.4-linux-x86_64.egg',
'/usr/lib64/python24.zip', '/usr/lib64/python2.4',
'/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk',
'/usr/lib64/python2.4/lib-d
Also can I assume, regarding the above question above, that "messages" is
the last thing Django is processing since it is at the
bottom of the list in installed apps? I.e. If I fix the messages error it
might work?
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
Check your PYTHONPATH. Perhaps it's not set right on the CentOS machine.
The Linux distro shouldn't make a difference, nor should the presence of
Cpanel or MySQL.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send ema
Hey Gang, I have a Django project built on a Debian server at home using http://djangobb.org";>DjangoBB.
It is working on the Debain OS but I am having huge problems on the Centos
server. This seams to be the farthest I can go with it. -->
#-->python manage.py syncdb
Error: N
rial on this page:
> >https://docs.djangoproject.com/en/1.3/intro/tutorial01/
>
> > In it, the 'python manage.py syncdb' command is supposed to be run to
> > create tables for the apps in the INSTALLED_APPS setting, right? And
> > this bit seems to come before you star
's
On Wed, Nov 2, 2011 at 9:59 AM, angelika wrote:
> I'm following the tutorial on this page:
> https://docs.djangoproject.com/en/1.3/intro/tutorial01/
>
> In it, the 'python manage.py syncdb' command is supposed to be run to
> create tables for the apps in the
On Wed, 2011-11-02 at 04:59 -0700, angelika wrote:
> I'm following the tutorial on this page:
> https://docs.djangoproject.com/en/1.3/intro/tutorial01/
>
> In it, the 'python manage.py syncdb' command is supposed to be run to
> create tables for the apps in the INST
I'm following the tutorial on this page:
https://docs.djangoproject.com/en/1.3/intro/tutorial01/
In it, the 'python manage.py syncdb' command is supposed to be run to
create tables for the apps in the INSTALLED_APPS setting, right? And
this bit seems to come before you start crea
On Wed, 2011-11-02 at 04:37 -0700, angelika wrote:
> I'm new to both Python and Django. I'm doing the tutorial and I named
> the site mysite, to keep it simple. Does that mean mysite is the name
> of the app? And the command should be:
you must have created an app under mysite - probably named 'po
both of them...
> On Oct 14, 2011 5:49 PM, "Chen Xu" wrote:
>
> and when i tried "python manage.py sqlall " it gives empty.
> I think is it because I am not importing properly or something else is
> going wrong.
>
>
> Thanks
>
>
>
>
&g
ge.py sqlall " it gives empty.
> > > I think is it because I am not importing properly or something else is
> > > going wrong.
> > >
> > >
> > > Thanks
> > >
> > >
> > >
> > >
> > >
&
am new to Django.
>>>>> I have installed Django and go t everything set up correctly, just
>>>>> started some easy tutorials.
>>>>>
>>>>> So when I do
>>>>> Django-admin.py startapp blog
>>>>>
>>>>>
>>&g
>
> So when I do
> Django-admin.py startapp blog
>
>
> it creates a /blog directory that looks like thsi
> /blog
> - __init__.py
> - tests.py
> - models.py
> - views.py
>
> I know in Django, when you run "python manage.py syncdb", i
y that looks like thsi
> /blog
> - __init__.py
> - tests.py
> - models.py
> - views.py
>
> I know in Django, when you run "python manage.py syncdb", it will look
> through models.py, and create all the table it finds.
> However, I dont want to create a
because I am not importing properly or something else is
> going wrong.
>
>
> Thanks
>
>
>
>
>
> On Fri, Oct 14, 2011 at 2:46 AM, Chen Xu wrote:
>
>> I know that will work, but what I can do to just make "python manage.py
>> syncdb" work?
>
and when i tried "python manage.py sqlall " it gives empty.
I think is it because I am not importing properly or something else is
going wrong.
Thanks
On Fri, Oct 14, 2011 at 2:46 AM, Chen Xu wrote:
> I know that will work, but what I can do to just make "python
I know that will work, but what I can do to just make "python manage.py
syncdb" work?
Thanks very much
On Fri, Oct 14, 2011 at 2:37 AM, nicolas HERSOG wrote:
> You can also type python manage.py sqlall and copy paste sql
> instructions in your bd
>
> On Fri, Oct 14, 201
when I do
> Django-admin.py startapp blog
>
>
> it creates a /blog directory that looks like thsi
> /blog
> - __init__.py
> - tests.py
> - models.py
> - views.py
>
> I know in Django, when you run "python manage.py syncdb", it will look
> th
Django, when you run "python manage.py syncdb", it will look
through models.py, and create all the table it finds.
However, I dont want to create all my tables in models.py, becaue when my
proj get bigger, it is hard to maintain.
Therefore, I create a subdirectory "/Models" t
On 08/18/2011 04:22 PM, Mike Seidle wrote:
When I started with Django, I ran into the same issue... seemed kind of silly
that we had this amazing framework that did so much but it had no way to
really alter tables... Enter South. South works pretty well, but if you roll
your own ModelFields it
On Thursday, August 18, 2011 12:03:00 pm smith jack wrote:
> at last, i use command python manage.py syncdb
>
> but was suprised to find that the schema of url table in the database
> is not changed
>
> so is there any method to change the shcema of table using django comman
As was mentioned previously, South is the best solution in Django at
this time.
south.aeracode.org
The docs are good, there's a Google Group you can join, and plenty of
people on this list use it all the time and can help with it.
Shawn
--
You received this message because you are subscribe
s url(models.Model):
> link=models.URLField(unique=True)
>
> then i change this class as follows:
>
> class url(models.Model):
> link=models.URLField(unique=True)
> hits=models.IntegerField()
>
> at last, i use command python manage.py syncdb
>
> bu
:03:00
To:
Reply-To: django-users@googlegroups.com
Subject: How to change the schma of database using python manage.py syncdb?
for example at first i have a model named url, the code is as follows:
class url(models.Model):
link=models.URLField(unique=True)
then i change this class as follows
python manage.py syncdb
but was suprised to find that the schema of url table in the database
is not changed
so is there any method to change the shcema of table using django command?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
:57
An: django-users@googlegroups.com
Betreff: Re: problems: python manage.py syncdb
Hi:
I think you configuration for database(postgresql) is not correct , or your
database is not running, make sure you can connect your database using you
profile on settings,py
2011/4/22 Lancinè I KABA
27;settings.py' and am running "python manage.py runserver".
>
> When I run the server and then call "python manage.py syncdb" against
> my Postgres database, everything just hangs.
>
> If I kill 'runserver', then I get this message from s
Hello!!!
I am new to django, and am running the tutorial. I have edited
'settings.py' and am running "python manage.py runserver".
When I run the server and then call "python manage.py syncdb" against
my Postgres database, everything just hangs.
If I kill '
nd only
port 5432 is open for postgresql.
I could also login postgresql with psql either on local machine or
from remote machine. I do not have a /var/run/postgresql directory.
Could someone with more experience point out what I need to do to make
it working? thanks.
JF
$ python manage.py sy
http://docs.djangoproject.com/en/dev/topics/testing/#understanding-the-test-output
Franklin
On Sun, Jul 25, 2010 at 6:31 AM, balu wrote:
> I'm using djago 1.2.1 and python 2.6
>
> The command line error is...
>
> C:\mysite>python manage.py syncdb
> Creating table
I'm using djago 1.2.1 and python 2.6
The command line error is...
C:\mysite>python manage.py syncdb
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table a
Hello,
I am a new user to Django and have trouble executing the "python
manage.py syncdb" command. I am using a server/client configuration,
where the database is setting on a different Linux (CentOS) server
than the web server (each one is being hosted in VMWare VM). The
"p
The problem logging in to mysql was with how I created the new user.
Nevermind :-)
JG
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send
When I login to mysql from a shell as user django_editor, I can change
tables in a database I've called django_server.
settings.py contains
DATABASE_NAME = 'django_server' # Or path to database file
if using sqlite3.
DATABASE_USER = 'django_editor'
python
roblem. When I try and run
> "python manage.py syncdb" I get this error: "Can't connect to local
> MySQL server through socket '/opt/local/var/run/mysql5/
> mysqld.sock' (2)"
>
> Mysql is running; I have the little tool in system preferences that
Okay, I figured out this problem by editing my PYTHONPATH in
my .bash_profile, but now I have another problem. When I try and run
"python manage.py syncdb" I get this error: "Can't connect to local
MySQL server through socket '/opt/local/var/run/mysql5/
mysqld.sock'
;> django/templates".
>> # Always use forward slashes, even on Windows.
>> # Don't forget to use absolute paths, not relative paths.
>> '/home/ssavic/django2/mysite/templates'
>> )
>>
>> INSTALLED_APPS = (
>> '
jango2/mysite/templates'
> )
>
> INSTALLED_APPS = (
> 'django.contrib.auth',
> 'django.contrib.contenttypes',
> 'django.contrib.sessions',
> 'django.contrib.sites',
> 'mysite.polls',
> 'dja
x27;django.contrib.sites',
'mysite.polls',
'django.contrib.admin'
)
i suspect the sqlite version and folder structure not working with the
newer version of python. but maybe this is just a very unexperienced
opinion.
thanks for help!
selena
On Oct 19, 5:51 am,
2009/10/18 selena
>
> Hello
> hey michael
> I have been experiencing this problem since I installed my brand new
> Ubuntu Karmic with python in version 2.6 The project I am working on
> was working under python2.5 in my old Gentoo and still works (at least
> the python man
Hello
hey michael
I have been experiencing this problem since I installed my brand new
Ubuntu Karmic with python in version 2.6 The project I am working on
was working under python2.5 in my old Gentoo and still works (at least
the python manage.py syncdb command does) on a server which is also
You might want to check this out as a more up to date intro:
http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to thi
On Mon, Sep 14, 2009 at 1:38 PM, Randy Barlow wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> about2flip declared:
> > File "E:\djproj\ifriends\..\ifriends\People\models.py", line 8
> > def_str_(self):
> > ^
> > SyntaxError: invalid syntax
>
> Looks like you
TextField('Desc', maxlength=500, blank=True)
>> def_str_(self):
>>return '%s' % (self.name)
>>
>> I keep getting an error when I use the command>>>python manage.py
>> syncdb (see below)
>>
>>
>> E:\djproj\if
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
about2flip declared:
> File "E:\djproj\ifriends\..\ifriends\People\models.py", line 8
> def_str_(self):
> ^
> SyntaxError: invalid syntax
Looks like you are missing a space between def and __str__(self).
Should be:
def __str_
ame', maxlength=200)
>email = models.EmailField('Email', blank=True)
>headshots = models.ImageField(upload_to='img', blank=True)
>text = models.TextField('Desc', maxlength=500, blank=True)
>def_str_(self):
> return '%s
On Sep 14, 3:27 pm, about2flip wrote:
> Hi:
>
> I am using learn django in 24 hours and I am following this example on
> models.
> File "E:\djproj\ifriends\..\ifriends\People\models.py", line 8
> def_str_(self):
> ^
> SyntaxError: invalid syntax
>
> E:\djproj\ifriends>
>
= models.ImageField(upload_to='img', blank=True)
text = models.TextField('Desc', maxlength=500, blank=True)
def_str_(self):
return '%s' % (self.name)
I keep getting an error when I use the command>>>python manage.py
syncdb (see below)
E:\d
On Wed, Sep 9, 2009 at 11:40 AM, ankit rai wrote:
> hello,
>
> this error shows that there is some postgres db connection exception.please
> check ur connection
As far as i know, everything is ok so far. But, if i check with *python
manage.py dbshell, it can connect!*
--
Best,
Zico
--~--~---
On Wednesday 09 Sep 2009 11:07:22 am Zico wrote:
> File
> "/usr/lib/python2.6/site-packages/django/contrib/gis/db/backend/postgis/man
>agement.py", line 13, in _get_postgis_func
> cursor.execute('SELECT %s()' % func)
> *psycopg2.InternalError: current transaction is aborted, commands ignored
and to sync my database.
> Command is: *python manage.py syncdb
>
> *But, here, i get the error:
>
> *psycopg2.InternalError: current transaction is aborted, commands ignored
> until end of transaction block
> *
> Here is the full error:
>
> [r...@fedora f
Hi, I have been trying to install fixmystreet in one of my Fedora 11
machine. In one step, i need to enter the command to sync my database.
Command is: *python manage.py syncdb
*But, here, i get the error:
*psycopg2.InternalError: current transaction is aborted, commands ignored
until end of
On Nov 11, 2:50 am, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 10, 2008 at 8:16 PM, Sean <[EMAIL PROTECTED]> wrote:
>
> > When I run the command python manage.py syncdb to sync database, but
> > failed
>
> > I got the following
On Nov 11, 7:22 am, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Nov 11, 1:18 am, Sean <[EMAIL PROTECTED]> wrote:
>
> > When I run the command "python manage.py syncdb" to sync database, but
> > failed
>
> > I got the following error messages:
On Nov 11, 1:18 am, Sean <[EMAIL PROTECTED]> wrote:
> When I run the command "python manage.py syncdb" to sync database, but
> failed
>
> I got the following error messages:
>
> File "C:\Python25\Lib\site-packages\django\contrib\auth
On Mon, Nov 10, 2008 at 8:16 PM, Sean <[EMAIL PROTECTED]> wrote:
>
> When I run the command python manage.py syncdb to sync database, but
> failed
>
> I got the following error messages:
>
> File "C:\Python25\Lib\site-packages\django\contrib\auth\manage
When I run the command "python manage.py syncdb" to sync database, but
failed
I got the following error messages:
File "C:\Python25\Lib\site-packages\django\contrib\auth\management
\_init_.py". line 47 , in
signals.post_syncdb.connect
I got django1.0, Python2.52, Apac
When I run the command python manage.py syncdb to sync database, but
failed
I got the following error messages:
File "C:\Python25\Lib\site-packages\django\contrib\auth\management
\_init_.py". line 47 , in
signals.post_syncdb.connect
I got django1.0, Python2.52, Apache2.2.9, M
Changing host from '' to 127.0.0.1 in setting.py made the error go
away.
it is working fine now.
thanks
On Oct 15, 11:12 am, ydjango <[EMAIL PROTECTED]> wrote:
> my mysql is running under /opt/lammp.
>
> when I run 'python manage.py syncdb'
> i get er
my mysql is running under /opt/lammp.
when I run 'python manage.py syncdb'
i get error _mysql_exceptions.OperationalError: (2002, "Can't connect
to local MySQL server through socket '/var/lib/mysql/
mysql.sock' (111)")
Is there anyway I can specify it to u
Your postgresql database is not running.
So
$ su postgres
then go to the postgres user's home directory and then
$ postgres -D data/
The database server starts running...then try your syncdb...it'll
work.
Cheers
Thejaswi Puthraya
--~--~-~--~~~---~--~~
You recei
Russ,
Thanks for your response. I changed the django port from 5433 (Linux
Journal--July 2007) to 5432 and the tables were created. Thanks again.
John
On Jul 16, 2007, at 9:39 AM, Russell Keith-Magee wrote:
>
> On 7/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>
>> Is the ser
On 7/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Is the server running locally and accepting
> connections on Unix domain socket "/tmp/.s.PGSQL.5433"?
This is a Postgres error, telling you that the psycopg can't connect
to the Postgres DB.
You need to play around with
Can't set tables using 'python manage.py syncdb'. -- Version .96 of
django; server started on 8080; can see django page from browser.
Created postgresql database 'aft' for user 'robo7' now password; set
settings.py error from syncdb option:
[EMAIL PROTECTE
python 2.3.1 (mod_python 3.2.10)
Django 0.95
Apache 2.2.3
mysql 4.0.20
bad RAM is possible, but this is the only funny thing happening on the
box. Is it possibly a MySQL issue? thanks for any help or
suggestions.
--~--~-~--~~~---~--~~
You received this message
On 8/31/06, billybob <[EMAIL PROTECTED]> wrote:
> this is my first shot at using Django. i've been using php/mysql on my
...
> Adding permission 'site | Can add site'
> Adding permission 'site | Can change site'
> Adding permission 'site | Can delete site'
> python: Objects/object.c:1397: PyObjec
this is my first shot at using Django. i've been using php/mysql on my
site for a while, but really like python and would like to move to it.
i thought i had everything setup correctly but while following through
the tutorial on the djangoproject.com site when i enter:
python manage.py s
85 matches
Mail list logo