Database Setup

2010-10-12 Thread Everett
I'm running Django on Windows. When I edited the settings.py file for the MySql database I'm running in an XAMPP package, the Django development server throws a bunch of unhandled exceptions. It starts out like this: Unhandled exception in thread started by Traceback (most recent call last): File

Database setup

2012-10-29 Thread Markus Christen
use this database in the Admin site, but i'm to stupid to implements this correct into the Database Setup. The server is not on my computer, it is in the same LAN Can someone help me please? -- You received this message because you are subscribed to the Google Groups "Django users&qu

Database setup

2007-07-14 Thread surfwizz
I'm trying to do the django tutorial at http://www.djangoproject.com/documentation/tutorial01/, but I don't know how to set up a database. I do not have a dedicated server or web hosting at this time, and I want to do some work on setting up a website with database systems before I get web hosti

Database setup

2019-04-19 Thread Soumen Khatua
Hi Folks, How can I configure xampp server provided mysql database in django. Thank you. -- 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..

Database setup

2019-05-10 Thread Soumen Khatua
Hi Folks, I have one existing table in my database then how I can use the same table in my models.py. Thank You. -- 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 t

Re: Database Setup

2010-10-12 Thread Jonathan Barratt
On 13 ?.?. 2010, at 10:19, Everett wrote: > I'm running Django on Windows. When I edited the settings.py file for > the MySql database I'm running in an XAMPP package, the Django > development server throws a bunch of unhandled exceptions. It starts > out like this: The most useful error message

Re: Database Setup

2010-10-13 Thread Everett
On Oct 13, 2:34?am, Jonathan Barratt wrote: > On 13 ?.?. 2010, at 10:19, Everett wrote: > > > I'm running Django on Windows. When I edited the settings.py file for > > the MySql database I'm running in an XAMPP package, the Django > > development server throws a bunch of unhandled exceptions. It

Re: Database Setup

2010-10-13 Thread Jonathan Barratt
On 14 ?.?. 2010, at 1:32, Everett wrote: > > Ok I was just assuming Python already had the MySQL bindings. > So I've downloaded the MySQL-python-1.2.3.tar.gz, I decompressed it, > read that I needed easy_install or setuptools. So I installed > setuptools/easy_install but for some reason it won't

Re: Database Setup

2010-10-14 Thread Greg Fuller
This can be a pain on windows, because there is usually no compiler for setup to build the "binary" version of the adaptor. The easiest course of action is to find a binary for the version of python you are running. I haven't seen any for 2.7 yet but searching for "python msqldb windows binary" w

Re: Database Setup

2010-10-14 Thread Sithembewena Lloyd Dube
I recall having a similar problem. Get the MySQL bindings appropriate to your Python version below and install to your site-packages folder: http://sourceforge.net/projects/mysql-python/ 2010/10/13 Everett > > > On Oct 13, 2:34 am, Jonathan Barratt > wrote: > > On 13 ?.?. 2010, at 10:19, Evere

Re: Database Setup

2010-10-16 Thread Everett
Ok...I'm confused nowdo I have to build the bindings or just copy them into the site-packages directory? On Oct 14, 4:26 am, Sithembewena Lloyd Dube wrote: > I recall having a similar problem. Get the MySQL bindings appropriate to > your Python version below and install to your site-packages

Re: Database Setup

2010-10-16 Thread Jonathan Barratt
On 17 ?.?. 2010, at 0:03, Everett wrote: > Ok...I'm confused nowdo I have to build the bindings or just copy > them into the site-packages directory? I'm not sure this advice: >> I recall having a similar problem. Get the MySQL bindings appropriate to >> your Python version below and instal

Re: Database Setup

2010-10-16 Thread Karen Tracey
2010/10/16 Jonathan Barratt > Hope you have visual studio installed! :p If you do not, or if you do not want to go to the trouble of building MySQLdb from source, it is usually possible to find Windows binary packages for MySQLdb by searching Google with terms like: mysqldb windows binaries py

Re: Database Setup

2010-10-22 Thread Everett
Thanks everyone for all your help! I found a binary for Python 2.7 Here's a the link: http://www.codegood.com/archives/129 Just in case someone stumbles upon these posts. On Oct 16, 3:58 pm, Karen Tracey wrote: > 2010/10/16 Jonathan Barratt > > > Hope you have visual studio installed! :p > > If

Re: Database Setup

2010-10-27 Thread Sithembewena Lloyd Dube
Thanks Everett! On Sat, Oct 23, 2010 at 4:24 AM, Everett wrote: > Thanks everyone for all your help! I found a binary for Python 2.7 > Here's a the link: http://www.codegood.com/archives/129 > Just in case someone stumbles upon these posts. > > On Oct 16, 3:58 pm, Karen Tracey wrote: > > 2010/1

Re: Database setup

2012-10-29 Thread Markus Christen
EDIT: I have a second to implements. Its a Lotus Notes DB, and for the userauth there is a file on my computer. I tryed it with the odbc of IBM: --- import pyodbc conn = pyodbc.connect('DRIVER={Lotus Notes SQL Driver (*.nsf)};SERVER=Wind/Sefa

Re: Database setup

2012-10-29 Thread Onyx Fields
I wish I could help as well, but I just started with the tutorial (HERE<https://docs.djangoproject.com/en/1.4/intro/tutorial01/>), and I am not following the Database Setup either. Perhaps someone who is more familiar with it could explain it in layman's terms for a noob like

Re: Database setup

2012-10-29 Thread Tom Evans
On Mon, Oct 29, 2012 at 3:54 PM, Onyx Fields wrote: > I wish I could help as well, but I just started with the tutorial (HERE), > and I am not following the Database Setup either. Perhaps someone who is > more familiar with it could explain it in layman's terms for a noob like &g

Re: Database setup

2012-10-30 Thread Markus Christen
> > What i know now: > > -- > > DATABASES = { > 'default': { > 'ENGINE': 'django.db.backends.mysql', > 'NAME': 'baan5c', > 'USER': '***', > 'PASSWORD': '*', > 'HOST': 'MAURITIUS', > 'PORT': '1433', >

Re: Database setup

2012-10-30 Thread Jirka Vejrazka
Hi Markus, I don't think you mentioned what OS you use on your machine with Django. If it helps, I had this in my settings.py when connecting to MS SQL database from Linux 'mssql': { 'ENGINE': 'sql_server.pyodbc', 'NAME': 'mdb', 'USER': USERNAME, 'PASSWORD

Database setup Issue

2013-03-21 Thread Kamalakannan Srinivasan
Hi, I installed PostgreSQL 8.4.16 and was trying to set up the database as specified in the tutorial under djangoproject.com. I gave the Engine name as 'django.db.backends.postgresql_psycopg2' and Name as 'PostgreSQL' and ran the python manage.py syncdb command. But it gave the error 'database

Re: Database setup

2007-07-14 Thread Christian Hoeppner
Sure you can. You might want to look at sqlite, as it's the easiest to set up. You can painlessly switch to a "better" database engine when going to production, though sqlite does quite well the job, even in production. surfwizz escribió: > I'm trying to do the django tutorial at > http://w

Re: Database setup

2007-07-14 Thread Tim Chase
> Sure you can. You might want to look at sqlite, as it's the > easiest to set up. You can painlessly switch to a "better" > database engine when going to production, though sqlite does > quite well the job, even in production. I second Christian's suggestion of using sqlite for its minimal-fuss

Re: Database setup

2007-07-14 Thread Carl Karsten
surfwizz wrote: > I'm trying to do the django tutorial at > http://www.djangoproject.com/documentation/tutorial01/, > but I don't know how to set up a database. I do not have a dedicated > server or web hosting at this time, and I want to do some work on > setting up a website with database syst

Re: Database setup

2019-04-19 Thread Okware Aldo
Hey, If you have xampp installed, just create a database using phpmyadmin, attach a user to that database. then ensure you have a driver package installed and setup for django. eg. pymsql has worked well for. then make the necessary changes in django settings file. On Fri, Apr 19, 2019 at 9:21 PM

Re: Database setup

2019-04-19 Thread Soumen Khatua
Yes I already install xampp server but what will be my password? Actually for development purpose xampp server not accept any password, I guess!! Thank you for your valuable time. On Sat, 20 Apr 2019, 10:48 Okware Aldo, wrote: > Hey, If you have xampp installed, just create a database using ph

Re: Database setup

2019-04-19 Thread Okware Aldo
So if you launch xampp and you are sure all the services are running. services (Apache, MySQL, and PHP), xampp also ships with phpmyadmin a mysql webbased interface. which you can launch by typing `localhost/phpmyadmin` in any browser of choice. Once the PHPMyAdmin interface is launched. using thi

Re: Database setup

2019-04-22 Thread Sipum
Hi somen, Just Open xampp control panel and run apache and mySQL sever. then go to localhost/phpmyadmin in browser and there create a database as u do for php. then in search DATABASE in settings.py file (which would be created when u create a project in django) do the below changes - DATABAS

Re: Database setup

2019-05-10 Thread Lucas G. Navarro
Hi Soumen, i think that what you need is this [1] Regards! El vie., 10 may. 2019 a las 11:59, Soumen Khatua () escribió: > Hi Folks, > > I have one existing table in my database then how I can use the same table > in my models.

Re: Database setup

2019-05-13 Thread Devender Kumar
You need to make model for that where managed = false in class meta of the model. even you can generate complete table model from the db. On Friday, May 10, 2019 at 8:29:40 PM UTC+5:30, Soumen Khatua wrote: > > Hi Folks, > > I have one existing table in my database then how I can use the same ta

Multiple Database Setup

2019-10-30 Thread Rajat Chopra
I wish to create a project with 2 apps. Each app will have its own database - one for payments and another for statements. I have created a set of models within the models.py for the payments app and another set of models inside within the models.py for the statements app. When I run the com

Re: Database setup Issue

2013-03-21 Thread Antoni Aloy
You have to create first the database in Postgresql, give it a name and a password, and configure it to allow connections. Then you have to configure the database settings with the database name, ip, user and password. If you're doing the tutorial is much better to stay in sqlite3, so you'll have

django database setup problem

2007-10-03 Thread swati
Hi All, I am setting up first django project. When I set up django without any database settings, I could see the first welcome page from django. After this initial success, when I specify the database settings in the 'settings.py' and tried to run django, I am getting error,- "ImproperlyConfigu

Multiple Database Setup problem !?

2018-10-30 Thread David Lubomirov
Hello, In my project I have 3 applications, and I'm trying to split them across 2 databases. More specifically 2 of the apps and Django "auth" application should work with the first database, and the last application should remain in the second database. These are the DB settings: DATABASE_RO

Re: Multiple Database Setup

2019-10-30 Thread DANIEL URBANO DE LA RUA
https://docs.djangoproject.com/en/2.2/topics/db/multi-db/ On Wed, 30 Oct 2019, 14:39 Rajat Chopra, wrote: > I wish to create a project with 2 apps. Each app will have its own > database - one for payments and another for statements. > > I have created a set of models within the models.py for th

Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hello all ! So I am going through the (Database setup) chapter of this tutorial (https://docs.djangoproject.com/en/1.8/intro/tutorial01/) --- Its the section right after the first chapter on "Creating a project" I opened up mysite/settings.py as per the instructions on the Django

Re: django database setup problem

2007-10-03 Thread Joseph Heck
You're on the right track - missing the MySQL python libraries. It looks like Python is also missing the zlib libraries... not sure which OS you're using, but there's probably an "apt-get install ..." or "rpm -Uvh ..." command that will get you the MySQL Python libraries that you need. Looking on

Re: django database setup problem

2007-10-04 Thread swati
Thanks Joe, I recompiled the python with zlib support and tried to install mysqldb, now I am not getting the error of zlib anymore. But got error with gcc compiler. Part of the error is something like,- --

Re: django database setup problem

2007-10-04 Thread Joseph Heck
I'd recommend installing http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/Fedora/RPMS/MySQL-python-1.2.0-1.i386.rpm If I remember correctly, Fedora (RPM) has no trouble with using a remote RPM file - so the following should do the trick: rpm -Uvh http://download.fedora.redhat.c

Re: Multiple Database Setup problem !?

2018-11-02 Thread 'Tom Evans' via Django users
Hi David Your router isn't configured correctly. This applies to all the allow_foo() methods, but see allow_migrate [1] as an example: Determine if the migration operation is allowed to run on the database with alias db. Return True if the operation should run, False if it shouldn’t run, or Non

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> … > However, when I try to run the following command : $ python manage.py migrate > to create the tables in the database, > CaiGengYangs-MacBook-Pro:Weiqi CaiGengYang$ python manage.py migrate > input > I get the following error message : > /Library/Frameworks/Python.framework/Versions/2.7

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hi Tom, So I click on Finder ---> Go ---> Home ---> 'Weiqi' folder ---> mysite folder ---> manage.py file. (using a Mac OS X Yosemite Version 10.10.2) This puts me in the same directory as the manage.py file. Then I key in the command : $ python manage.py migrate, but I still get the same er

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> On Sep 27, 2015, at 04:39, Cai Gengyang wrote: > > Hi Tom, > So I click on Finder ---> Go ---> Home ---> 'Weiqi' folder ---> mysite folder > ---> manage.py file. (using a Mac OS X Yosemite Version 10.10.2) > This puts me in the same directory as the manage.py file. > Then I key in the command

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hi Tom, Following your latest instructions , I have posted my input and output results here. Still getting an error message though it is a different one this time ( a traceback error ) CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd mysite folder CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ ls man

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> On Sep 27, 2015, at 05:26, Cai Gengyang wrote: > > Hi Tom, > > Following your latest instructions , I have posted my input and output > results here. Still getting an error message though it is a different one > this time ( a traceback error ) Oh, much better :) You are now seeing a typo

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Gergely Polonkai
Hello, that message is clear: line 45 in your settings.py has a syntax error. That line, however, seem OK, so I guess the previous one is that; maybe a comma is missing. Best, Gergely On 27 Sep 2015 14:26, "Cai Gengyang" wrote: > Hi Tom, > > Following your latest instructions , I have posted my

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
This is my entire settings.py file """ Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8.4. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see http

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Tom Lockhart
> On Sep 27, 2015, at 06:04, Cai Gengyang wrote: > > This is my entire settings.py file > > … I’m not seeing the problem, but it is certainly there somewhere. Try removing pieces of the settings file until you can isolate the syntax problem which is likely on or before line 45. Copy the orig

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hey guys, I am happy to announce that it finally works. The problem was that there was an additional 'qq' in my settings.py file on line 44.(no idea how it got there) I have posted my entire input / output here for viewing and discussion ... CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd mysite