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

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-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-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-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
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 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

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

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-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 > myself? > Are yo

Re: Database setup

2012-10-29 Thread Onyx Fields
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 myself? On Monda

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

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

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-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-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 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-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-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-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-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-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

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

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 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