Re: syncdb command can execute

2016-12-19 Thread Jani Tiainen
Hi, Note that syncdb was deprecated in favor of migrations. Also if you have followed the official Django tutorial, second part of it goes through creating models and reflecting your models to database. https://docs.djangoproject.com/en/1.10/intro/tutorial02/ On 19.12.2016 12:56, Navneel

Re: syncdb command can execute

2016-12-19 Thread Lekan Wahab
Would you provide a little more information? What errors are you getting? On Mon, Dec 19, 2016 at 11:56 AM, Navneel Pandey wrote: > hi i am new to django as i want to create a table but unable to do so I am > writing the command python manage.py syncdb > > -- > You receiv

syncdb command can execute

2016-12-19 Thread Navneel Pandey
hi i am new to django as i want to create a table but unable to do so I am writing the command python manage.py syncdb -- 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 i

Re: syncdb problem with mongodb engine

2015-10-19 Thread Lianghong Xu
; On Oct 19, 2015 9:14 AM, "Lianghong Xu" > > wrote: > >> Hi, >> >> I'm new to django. I would like to use MongoDB as my backend engine and >> installed all required packages for a MongoDB setup. However, when I run >> "python manage.py s

Re: syncdb problem with mongodb engine

2015-10-19 Thread James Schneider
hong Xu" wrote: > Hi, > > I'm new to django. I would like to use MongoDB as my backend engine and > installed all required packages for a MongoDB setup. However, when I run > "python manage.py syncdb", I get the following error message: > > (mywiki)lianghon

syncdb problem with mongodb engine

2015-10-19 Thread Lianghong Xu
Hi, I'm new to django. I'd like to use MongoDB as my backend engine and have installed all the required packages for a MongoDB django setup. However, when I run "python manage.py syncdb", I get this error: Traceback (most recent call last): File "

syncdb problem with mongodb engine

2015-10-19 Thread Lianghong Xu
Hi, I'm new to django. I would like to use MongoDB as my backend engine and installed all required packages for a MongoDB setup. However, when I run "python manage.py syncdb", I get the following error message: (mywiki)lianghon@172-19-151-114:~/repo/mywiki/testwiki$ python ma

Re: Don't run python manage.py syncdb

2015-10-09 Thread Rafael E. Ferrero
x27;django.contrib.staticfiles', > 'myApp' -- Rafael E. Ferrero 2015-10-09 16:39 GMT-03:00 Faffafa Trtrtrtrt : > I create question in > http://stackoverflow.com/questions/32999054/dont-run-python-manage-py-syncdb. > Any one can answer it? > > -- > You received th

Don't run python manage.py syncdb

2015-10-09 Thread Faffafa Trtrtrtrt
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 fro

Re: django 1.8 upgrade custom user model syncdb

2015-04-09 Thread Jochen Wersdoerfer
On Wednesday, April 8, 2015 at 5:46:42 PM UTC+2, Markus Holtermann wrote: > > > glad it works now. In that case you want to look at > https://docs.djangoproject.com/en/1.8/ref/settings/#migration-modules > and place the migrations somewhere in your project. Otherwise the > migrations end up in

Re: django 1.8 upgrade custom user model syncdb

2015-04-08 Thread Markus Holtermann
syncdb command breaks while adding a constraint to an app without migrations (meters), which has a model with a foreign key pointing to my custom user model. Ok, got it. Can't have a dependency from an unmigrated app to an app with migrations. Most of my own and some third party apps

Re: django 1.8 upgrade custom user model syncdb

2015-04-08 Thread Jochen Wersdoerfer
On Wednesday, April 8, 2015 at 4:56:43 PM UTC+2, Jochen Wersdoerfer wrote: > > > There’s an initial migration for my custom user model in accounts.models, > so the accounts_pixolususer table should have been created. The syncdb > command breaks while adding a constraint to

django 1.8 upgrade custom user model syncdb

2015-04-08 Thread Jochen Wersdoerfer
Hi *, I’m trying to upgrade to django 1.8, but running into some app-dependency issues: http://pastebin.com/uvKtBtNa There’s an initial migration for my custom user model in accounts.models, so the accounts_pixolususer table should have been created. The syncdb command breaks while adding a

Re: How to supply parameters to "python manage.py syncdb" from a script?

2015-03-23 Thread Dan Dong
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

Re: How to supply parameters to "python manage.py syncdb" from a script?

2015-03-20 Thread 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.py syncdb" from a script? E.g, to set the the followings parameters: > > Would you like to create one now? (yes/no): yes > Userna

Supply parameters to "manage.py syncdb" from a script?

2015-03-20 Thread Dan Dong
Hi, All, Does anybody know how to supply input parameters to "python manage.py syncdb" from a script? E.g. in a bash/python script, to set the following parameters: Would you like to create one now? (yes/no): yes Username (leave blank to use 'root'): Email address: x

How to supply parameters to "python manage.py syncdb" from a script?

2015-03-20 Thread Dan Dong
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

oracle syncdb crashes while setting column to NULL when it already is NULL

2015-02-05 Thread Joris Benschop
hi I'm not sure if this is a dev question or it should be posted here. Probably I did something dumb, so I hope you can help me doscover what that is: I'm trying to syncdb to an empty Oracle DB. Many tables, triggers and sequences are made but

Re: syncdb error with Mysql database on Windows 7

2015-01-25 Thread Carlos Andre
install PyMySQL, after create a user e a databases in mysql terminal; e.g:1º)create user 'root'@'localhost' identified by 'fish1777'; 2º) create database Mydb; 3º) grant all privileges on Mydb.* to 'root'@'localhost' identified by 'fish1

Re: syncdb error with Mysql database on Windows 7

2015-01-25 Thread olek.russ
I also followed note for create schema ( have watched https://www.youtube.com/watch?v=EL39BGSUkzw video in addition ) and got success. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Re: I can't syncdb via django_pyodbc of Django.

2014-12-12 Thread Sugita Shinsuke
Hello Fred Stluka Thank you for detailed document. I resolved syncdb in Windows OS. My SQL Server setting was something wrong. I will try Linux edition also. 2014年12月12日金曜日 3時03分35秒 UTC+9 Fred Stluka: > > Sugita, > > Django does work with MS SQL Server, but not as well as with

Re: I can't syncdb via django_pyodbc of Django.

2014-12-11 Thread Fred Stluka
cy is pyodbc to be installed. On Wednesday, December 10, 2014 4:22:44 AM UTC-5, Sugita Shinsuke wrote: Hi there. Could you tell me a good way to use Django with Micro Soft DB SQL server. I tried django_pyodbc. Any suggestion is appreciated. my PC of Environment is below. Datab

Re: I can't syncdb via django_pyodbc of Django.

2014-12-11 Thread Sugita Shinsuke
good way to use Django with Micro Soft DB SQL server. I >> tried django_pyodbc. Any suggestion is appreciated. >> >> my PC of Environment is below. >> >> Database: >> SQL Server 2014 Express >> >> OS: >> Windows 7 Home Premium SP1 >> >>

Re: I can't syncdb via django_pyodbc of Django.

2014-12-10 Thread Sugita Shinsuke
ll me a good way to use Django with Micro Soft DB SQL server. I >> tried django_pyodbc. Any suggestion is appreciated. >> >> my PC of Environment is below. >> >> Database: >> SQL Server 2014 Express >> >> OS: >> Windows 7 Home Premium SP1 >&g

Re: I can't syncdb via django_pyodbc of Django.

2014-12-10 Thread Sugita Shinsuke
Hello pythonista, Thank you for replying. I tried django-pyodbc-azure But syncdb didn't run yet. As the website says, since I use Django 1.6.4, I installed django-pyodbc-azure as "pip install "django-pyodbc-azure<1.2"" I checked the odbc driver by Control Panel &

Re: I can't syncdb via django_pyodbc of Django.

2014-12-10 Thread pythonista
d. > > my PC of Environment is below. > > Database: > SQL Server 2014 Express > > OS: > Windows 7 Home Premium SP1 > > I used the django module, django_pyodbc. > And, I tried to run syncdb but I couldn't. > > My settings.py is below. > >

I can't syncdb via django_pyodbc of Django.

2014-12-10 Thread Sugita Shinsuke
run syncdb but I couldn't. My settings.py is below. DATABASES = { 'default': { 'ENGINE': "django_pyodbc", 'HOST': "localhost", 'USER': "djangouser", 'PASSWORD': &quo

Re: syncdb error with Mysql database on Windows 7

2014-09-27 Thread Daniel Grace
For the record I solved this, I was mistaken there was no "mydb" schema in MySQL. I created this schema and ran the "syncdb" command without any problems. -- You received this message because you are subscribed to the Google Groups "Django users" group. To u

syncdb error with Mysql database on Windows 7

2014-09-24 Thread Daniel Grace
ysql.connector.django', 'USER': 'root', 'PASSWORD': 'fishy1777', } } When I do a syncdb I get the following errors: (landy) C:\landy\cresta>python manage.py syncdb Traceback (most recent call last): File "C:\landy\li

python manage.py syncdb

2014-08-08 Thread ngangsia akumbo
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)

Re: Recurring question. Automate manage.py syncdb

2014-06-20 Thread Ariel Calzada
the > famous: > > $ python $VIRTUAL_ENV/opt/graphite/webapp/graphite/manage.py syncdb > --pythonpath=$VIRTUAL_ENV/opt/graphite/webapp -v 2 > > > I am very noob with python but I don't want to maintain dumps or > workarounds with expect. I have found some info in stac

Recurring question. Automate manage.py syncdb

2014-06-20 Thread Rubén Ortiz
Hi I have to automate a kind of django setup in linux ubuntu box. The project runs under virtualenv. Then my main problem is when I have to execute the famous: $ python $VIRTUAL_ENV/opt/graphite/webapp/graphite/manage.py syncdb --pythonpath=$VIRTUAL_ENV/opt/graphite/webapp -v 2 I am

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-04-06 Thread Venkatraman S
On Fri, Mar 21, 2014 at 5:43 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Thu, Mar 20, 2014 at 6:50 PM, Venkatraman S wrote: > >> >> On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee < >> russ...@keith-magee.com> wrote: >> >>> >>> On Sat, Mar 15, 2014 at 7:19 AM, Jonathan B

ManytoManyField refuses to show up when I syncdb

2014-03-29 Thread willy Hakizimana
when I syncdb and use south schemamigration, I still can't get the ManyToManyField to show up. what am I doing wrong. Any parameters I can pass to make it work? Thank you guys class Products(models.Model): #product_id = models.AutoField(primary_key=True) hs_number = models.Char

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-20 Thread Mike Dewhirst
On 21/03/2014 11:13am, Russell Keith-Magee wrote: On Thu, Mar 20, 2014 at 6:50 PM, Venkatraman S mailto:venka...@gmail.com>> wrote: On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee mailto:russ...@keith-magee.com>> wrote: On Sat, Mar 15, 2014 at 7:19 AM, Jonathan Baker

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-20 Thread Russell Keith-Magee
On Thu, Mar 20, 2014 at 6:50 PM, Venkatraman S wrote: > > On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee < > russ...@keith-magee.com> wrote: > >> >> On Sat, Mar 15, 2014 at 7:19 AM, Jonathan Baker < >> jonathandavidba...@gmail.com> wrote: >> >>> Does that mean that the default="" functional

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-20 Thread Venkatraman S
On Sat, Mar 15, 2014 at 7:11 AM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Sat, Mar 15, 2014 at 7:19 AM, Jonathan Baker < > jonathandavidba...@gmail.com> wrote: > >> Does that mean that the default="" functionality is implemented by the >> ORM, instead of in the database layer?

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-14 Thread Russell Keith-Magee
On Sat, Mar 15, 2014 at 7:19 AM, Jonathan Baker < jonathandavidba...@gmail.com> wrote: > Does that mean that the default="" functionality is implemented by the > ORM, instead of in the database layer? > > This is correct - Django's "default" argument is an API level default, not a database level d

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-14 Thread Craig Schmidt
#x27;m looking at my South migrations and they do pass the > defaults. I believe that, either way, if you only touch the database through > the ORM it'll be set properly. It probably depends on what database you're > using. > > However, there's a bigger issue -- if yo

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-14 Thread Shawn Milochik
tions and they do pass the defaults. I believe that, either way, if you only touch the database through the ORM it'll be set properly. It probably depends on what database you're using. However, there's a bigger issue -- if you run syncdb a second time, it will do nothing, so it doesn&#

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-14 Thread Jonathan Baker
Does that mean that the default="" functionality is implemented by the ORM, instead of in the database layer? On Fri, Mar 14, 2014 at 5:16 PM, Shawn Milochik wrote: > No, no syncdb required. The default applies to newly-created instances, > not existing ones. > > -- >

Re: do I need to run syncdb when I change the default value in a field of a model?

2014-03-14 Thread Shawn Milochik
No, no syncdb required. The default applies to newly-created instances, not existing ones. -- 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-user

do I need to run syncdb when I change the default value in a field of a model?

2014-03-14 Thread Craig Schmidt
This is probably an easy question, but I didn't manage to find the answer. If I just change the default value of a field in a model, do I need to run syncdb? Specifically I changed: foo = models.IntegerField(default=1) to foo = models.IntegerField(default=5) Thanks, Craig --

Re: Newbie: ImportError during syncdb

2014-03-07 Thread David
just django_bookmarks. > > > On Thu, Mar 6, 2014 at 6:43 AM, David <mailto:ld...@gmx.net>> wrote: > > Dear django users, > > I am new to django and have an ImportError: No module named > bookmarks > problem. > >

Re: Newbie: ImportError during syncdb

2014-03-06 Thread Jay Parikh
hu, Mar 6, 2014 at 6:43 AM, David wrote: > Dear django users, > > I am new to django and have an ImportError: No module named bookmarks > problem. > > It seems that as I tried to syncdb django does not recognize the > bookmarks module I have created before. In the past I was

Re: Newbie: ImportError during syncdb

2014-03-06 Thread Jay Parikh
e: > What the name of the app folder? I think its just django_bookmarks. > > > On Thu, Mar 6, 2014 at 6:43 AM, David wrote: > >> Dear django users, >> >> I am new to django and have an ImportError: No module named bookmarks >> problem. >> >> It

Re: Newbie: ImportError during syncdb

2014-03-05 Thread Robin Lery
What the name of the app folder? I think its just django_bookmarks. On Thu, Mar 6, 2014 at 6:43 AM, David wrote: > Dear django users, > > I am new to django and have an ImportError: No module named bookmarks > problem. > > It seems that as I tried to syncdb django does

Newbie: ImportError during syncdb

2014-03-05 Thread David
Dear django users, I am new to django and have an ImportError: No module named bookmarks problem. It seems that as I tried to syncdb django does not recognize the bookmarks module I have created before. In the past I was able to syncdb, hence my confusion. I am trying to teach myself by

Re: referencing models before syncdb

2013-12-28 Thread thinkingpotato
Check if that is not something you're looking for: https://docs.djangoproject.com/en/1.5/ref/signals/#post-syncdb On Wednesday, December 25, 2013 7:18:45 PM UTC, vinaya...@iiitd.ac.in wrote: > > I have an actions.py file which defines custom actions for the admin page > for one of

referencing models before syncdb

2013-12-25 Thread vinayak11118
now when I try to run syncdb, it gives me the following error: Traceback (most recent call last): File "/home/vinayak/pyCharm/helpers/pycharm/django_manage.py", line 23, in run_module(manage_file, None, '__main__', True) File "/usr/lib/python2.7/runpy.py&

Re: Error Doing python manage.py syncdb in django pyBB

2013-12-15 Thread Frank Bieniek
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

Re: Error Doing python manage.py syncdb in django pyBB

2013-12-14 Thread Avraham Serour
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. > >

Error Doing python manage.py syncdb in django pyBB

2013-12-14 Thread Alok Nag
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

Get command error when trying to syncdb in django pyBB

2013-12-14 Thread Alok Nag
Hello Experts! I am trying to setup a forum app using pyBB. I followed steps mentioned in their website and finally getting below error when I try to run: python manage.py syncdb [aloknag-mbp15:~/Desktop/forum] aloknag% ./manage.py syncdb /Library/Python/2.7/site-packages/django_common-0.1.51

Problem with syncdb and multiple databases

2013-11-11 Thread Sells, Fred
I'm using Django 1.5 and Mysql 5.1 and am in the early stages of a multiple app development and the schema is changing frequently as "hidden" requirements emerge. I cannot get syncdb to sync anything other than my default db, and when I change my default, it still seems to

Re: multiple databases and syncdb problem

2013-10-30 Thread Tom Evans
On Tue, Oct 29, 2013 at 9:35 PM, Simon Charette wrote: > syncdb defaults to syncing the 'default' database when no --database is > specified. > > Try specifying which database to synchronize, with the --database=inserv > flag in your case. > syncdb will only synch on

Re: multiple databases and syncdb problem

2013-10-29 Thread Simon Charette
syncdb defaults to syncing the 'default' database when no --database is specified<https://docs.djangoproject.com/en/1.5/ref/django-admin/#django-admin-option---database> . Try specifying which database to synchronize, with the --database=inserv flag in your case. Le mardi 29 oc

multiple databases and syncdb problem

2013-10-29 Thread Sells, Fred
I can syncdb OK if I don't add allow_syncdb to my router, but if I add the allow_syncdb to the router, only my default db is synced. Any idea what I'm doing wrong, code is: def allow_syncdb(self, db, model): print 'allow syncdb for* Inserv Rout

Re: Table in models.py not being created during syncdb

2013-10-10 Thread Sergiy Khohlov
suk wrote: >> >> Hi, >> >> I'm using the django app, django-schedule (http://github.com/thauber/ >> django-schedule) and am adding an additional table to map users to >> calendars (see line 253 on dpaste). When I run syncdb it completely >> ignores my t

Re: Table in models.py not being created during syncdb

2013-10-09 Thread Edward Lazarenko
calendars (see line 253 on dpaste). When I run syncdb it completely > ignores my table and doesn't through any errors. Can anyone shed any > light on way it might be being igored? > > My models file is available here: > > http://dpaste.com/178158/ > > Thanks in advanc

Re: Not able to create an simple application using DB (syncdb error)

2013-09-30 Thread Bill Freeman
C+5:30, ke1g wrote: >>> >>>> And where is your settings.py file? If it is in the same directory as >>>> manage.py, and it is a reasonably current Django (1.4, 1.5), then it's in >>>> the wrong place. It belongs in a sub-director

Re: Not able to create an simple application using DB (syncdb error)

2013-09-27 Thread Bill Freeman
'blog1', along with >> your urls.py, wsgi.py and an empty __init__.py . >> >> >> >> On Wed, Sep 25, 2013 at 1:40 PM, s. gulab wrote: >> >>> When i give " ./manage.py syncdb " i am getting following error. >>> >>> &quo

Re: Not able to create an simple application using DB (syncdb error)

2013-09-25 Thread Bill Freeman
p 25, 2013 at 1:40 PM, s. gulab wrote: > When i give " ./manage.py syncdb " i am getting following error. > > " *Traceback (most recent call last):* > * File "manage.py", line 10, in * > *execute_from_command_line(sys.argv)* > * File > "c:\Py

Re: Not able to create an simple application using DB (syncdb error)

2013-09-25 Thread Roopa singh
Can you please check this thread http://stackoverflow.com/questions/12987648/importerror-could-not-import-settings . On Wed, Sep 25, 2013 at 11:10 PM, s. gulab wrote: > When i give " ./manage.py syncdb " i am getting following error. > > " *Traceback (most recen

Not able to create an simple application using DB (syncdb error)

2013-09-25 Thread s. gulab
When i give " ./manage.py syncdb " i am getting following error. " *Traceback (most recent call last):* * File "manage.py", line 10, in * *execute_from_command_line(sys.argv)* * File "c:\Python27\lib\site-packages\django\core\management

Re: error python manage.py syncdb

2013-09-12 Thread Germán Larraín
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

Re: error python manage.py syncdb

2013-09-11 Thread Marco Fucci
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

Re: error python manage.py syncdb

2013-09-11 Thread Kishor Pawar
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 >

error python manage.py syncdb

2013-09-11 Thread Gabriele Angeli
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

Re: syncdb issue (begginer stuff)

2013-08-26 Thread Andre Terra
On Mon, Aug 26, 2013 at 1:19 PM, Natko Perko wrote: > @laurent i guess it worked, but now i get the error no module named > wikicamp.wiki.. this is all the code i have so far.. make sure the folder containing wikicamp is inside your PATH so you don't get import errors. make sure there's an __in

Re: syncdb issue (begginer stuff)

2013-08-26 Thread Natko Perko
@laurent i guess it worked, but now i get the error no module named wikicamp.wiki.. this is all the code i have so far.. from django.db import models # Create your models here. class Page(models.Model): name = models.CharField(maxlength="20", primary_key=True) content = models.T

Re: syncdb issue (begginer stuff)

2013-08-26 Thread Mantas Zilinskis
for your environment: you should definitely look into this http://www.jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/ if you're using mac also this http://hackercodex.com/guide/python-virtualenv-on-mac-osx-mountain-lion-10.8/ setup your settings.py http://www.rdegges.com/t

Re: syncdb issue (begginer stuff)

2013-08-26 Thread Laurent Meunier
On 26/08/2013 14:34, Natko Perko wrote: Hi out there, I just dove into Django (literally) and had so many issues installing it and knowing where to start from that I don't even know how I made it this far, so i finally started working on a project by mimicing this tutorial http://showmedo.com/vi

Re: SQLite3 refuses to work when running syncdb

2013-07-16 Thread Rafael E. Ferrero
?? > > Cheers! > > > 2013/7/16 Alex Hall > >> Hello list, >> I am well versed in Python, and I hate web development, but I have to >> make a website for my business. So, I thought I'd use Python to make the >> task more tolerable. >> >>

Re: SQLite3 refuses to work when running syncdb

2013-07-16 Thread Alex Hall
o make a > website for my business. So, I thought I'd use Python to make the task more > tolerable. > > I'm working through the official Django tutorial, and am at the part where I > am to run "python manage.py syncdb". However, I keep getting: > operatio

Re: SQLite3 refuses to work when running syncdb

2013-07-16 Thread Rafael E. Ferrero
d in Python, and I hate web development, but I have to make > a website for my business. So, I thought I'd use Python to make the task > more tolerable. > > I'm working through the official Django tutorial, and am at the part where > I am to run "python manage.py syncdb&

SQLite3 refuses to work when running syncdb

2013-07-16 Thread Alex Hall
Hello list, I am well versed in Python, and I hate web development, but I have to make a website for my business. So, I thought I'd use Python to make the task more tolerable. I'm working through the official Django tutorial, and am at the part where I am to run "python m

Re: python manage.py syncdb (using mysql database)

2013-06-03 Thread lordkyoshi2
docs.djangoproject.com/en/1.5/intro/tutorial01/ > but im blocked on syncdb > > if i choose on my settings the mysql, nothing happen, but if i take > sqlite3 it create the base > The prompt just stay on, as if i need to enter some inputs. > > I checked yesterday and this morning

python manage.py syncdb (using mysql database)

2013-06-02 Thread lordkyoshi2
Hello I try to create a polls from Django first tutorial https://docs.djangoproject.com/en/1.5/intro/tutorial01/ but im blocked on syncdb if i choose on my settings the mysql, nothing happen, but if i take sqlite3 it create the base The prompt just stay on, as if i need to enter some inputs. I

Re: SyncDb doesn't create tables in database

2013-05-30 Thread Anas
You are right ! It looks that the table has been created the first time and i didn't saw the message. Concerning the nodeid, i thought that it would be generated automatically and incremented for each new created instance , isn't it ? And i noticed also that the graph was created while the

Re: SyncDb doesn't create tables in database

2013-05-30 Thread Anas
s.py > > as suggested in the docs (http://neo4django.readthedocs.org) and > models.py > > as well. > > > > When i try to run syncdb , i am getting this message > > > > You just installed Django's auth system, which means you don't have &g

Re: SyncDb doesn't create tables in database

2013-05-30 Thread Tom Evans
ll. > > When i try to run syncdb , i am getting this message > > 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 > Username (leave blank to use &

SyncDb doesn't create tables in database

2013-05-30 Thread Anas
I am having Neo4Django in my django based application and trying to use two databases at the sametime : Neo4j and PostGIS. So i configured settings.py as suggested in the docs (http://neo4django.readthedocs.org) and models.py as well. When i try to run syncdb , i am getting this message

SyncDb doesn't create tables

2013-05-30 Thread Anas
Hello all, I am trying to create a table in my DB using models.py and the ./manage.py syncdb command. But what i notice is that anything is being inserted even though i can run this commad : ./manage.py sqlall testapp (where testapp is my app) and get the sql that permit to create the table

Re: Syncdb hangs/stalls

2013-05-26 Thread Aaron C. de Bruyn
to do. Now I've tried > this with and without South in installed apps, but either way this is what > I get: > > (venv)Joshs-MacBook-Air:webapp josh$ python manage.py syncdb --verbosity 3 > Creating tables ... > Processing project.NewCampaign_influencers model > Creating

Syncdb hangs/stalls

2013-05-25 Thread Joshua Kehn
Everything was working up until a few hours ago. Then I tried setting up South because I have a less than simple migration to do. Now I've tried this with and without South in installed apps, but either way this is what I get: (venv)Joshs-MacBook-Air:webapp josh$ python manage.py s

Re: SyncDB w/ MySQL - Has anyone seen an error like this?

2013-05-11 Thread Kurtis
To try and find more information, I erased the Django-created tables and re-ran syncdb again. This time, I turned verbosity on to 3 and piped all of my stdout to a text file. I actually did this first. However, here's the contents of the first one which includes everything up to the poi

Re: SyncDB w/ MySQL - Has anyone seen an error like this?

2013-05-11 Thread Kurtis
I should mention that I *did* convert all of my existing tables to InnoDB which hasn't helped at all. I don't have any weird configuration in my settings.py dealing with the database. As far as I can tell, all new tables created by syncdb are also InnoDB. -- You received this messa

SyncDB w/ MySQL - Has anyone seen an error like this?

2013-05-11 Thread Kurtis
When running syncdb, I am getting an unusual error. I'm using Django 1.5.1 and a relatively recent version of MariaDB on Arch. I am using some pre-existing tables which I've built Models around. The error is: *DatabaseError: (1005, "Can't create table '.#sql-1e51_2be&

Re: [newbie question] python manage syncdb doesn't create all the tables. Models has been splitted up.

2013-05-09 Thread crosa
application. This > > application will have several models, so I've decided to split up them, > > in order to do this more readable (Any other form to do this?) > > When I run python manage.py syncdb, the models tables have not been > > created, and I don't know

Re: [newbie question] python manage syncdb doesn't create all the tables. Models has been splitted up.

2013-05-09 Thread Mike Dewhirst
On 9/05/2013 10:04pm, crosa wrote: Hi guys, I'm testing django in order to build a little application. This application will have several models, so I've decided to split up them, in order to do this more readable (Any other form to do this?) When I run python manage.py syncdb,

[newbie question] python manage syncdb doesn't create all the tables. Models has been splitted up.

2013-05-09 Thread crosa
Hi guys, I'm testing django in order to build a little application. This application will have several models, so I've decided to split up them, in order to do this more readable (Any other form to do this?) When I run python manage.py syncdb, the models tables have not been crea

Re: Creating Tables w/o SyncDB (Django ORM)

2013-05-03 Thread Tom Evans
On Fri, May 3, 2013 at 2:01 PM, Christian Schmitt wrote: > Hi there, > is there a possible way of creating tables with Django's ORM w/o SyncDB. It > would be really helpfull, to make new tables while doing some UI > interactions. > Do you want to do everything exactly that sy

Creating Tables w/o SyncDB (Django ORM)

2013-05-03 Thread Christian Schmitt
Hi there, is there a possible way of creating tables with Django's ORM w/o SyncDB. It would be really helpfull, to make new tables while doing some UI interactions. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

Re: cant syncdb with postgresql

2013-04-25 Thread Pedro Silva
i already try it, no success, i think app its fine, its something with postgresql... 2 days ago i was able to sync, create.. db since yesterday its jus give that msg. i already uninstall python and django, reinstall and get same erro. Still works fine with sqlite3, when i change the db... fails

Re: cant syncdb with postgresql

2013-04-25 Thread Tom Evans
;, > #django logging view helper > 'django-log-file-viewer', > #custom template tags > 'meetpop.meet.templatetags', > > its fresh, i can create a fresh sqllite db with no probs. > Comment out all apps except for those starting "django.&qu

Re: cant syncdb with postgresql

2013-04-25 Thread Daniele Procida
On Thu, Apr 25, 2013, Pedro Silva wrote: >installed apps: >'django.contrib.auth', >'django.contrib.contenttypes', >'django.contrib.sessions', >'django.contrib.messages', >'django.contrib.staticfiles', >'django.contrib.admin', >'django.contrib.admindocs', >'psycopg2

Re: cant syncdb with postgresql

2013-04-25 Thread Pedro Silva
no luck with that Quinta-feira, 25 de Abril de 2013 14:27:31 UTC+1, Timothy Makobu escreveu: > > You need to catch exceptions during a commit and rollback the incomplete > transaction. > > from django.db import connection > connection._rollback() > > to rollback the current one. > > > On Thu, Apr

Re: cant syncdb with postgresql

2013-04-25 Thread Pedro Silva
eat. > >Can anybody help me? > >requeriments: > >Django==1.4.5 > >PIL==1.1.7 > >distribute==0.6.36 > >dj-database-url==0.2.1 > >django-db-log==2.2.1 > >django-log-file-viewer==0.4 > >psycopg2==2.5 > >virtualenv==1.9.1 > &

Re: cant syncdb with postgresql

2013-04-25 Thread Daniele Procida
>psycopg2==2.5 >virtualenv==1.9.1 Can you list what you have in INSTALLED_APPS? And, are you doing your syncdb on an empty database, or one with data already in it? Daniele -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

  1   2   3   4   5   6   7   8   9   >