kes sense, because you can have N unapplied migrations between
>>> the db and your migrations history package.
>>>
>>>
>>>
>>> On Tuesday, December 7, 2021 at 7:46:42 PM UTC-5
>>> shmuel@partnerize.com wrote:
>>>
>>>>
db and your migrations history package.
>>
>>
>>
>> On Tuesday, December 7, 2021 at 7:46:42 PM UTC-5
>> shmuel@partnerize.com wrote:
>>
>>> Wondering why sqlmigrate needs a connection to an existing database.
>>>
>>> I understand th
tory package.
>
>
>
> On Tuesday, December 7, 2021 at 7:46:42 PM UTC-5 shmuel@partnerize.com
> wrote:
>
>> Wondering why sqlmigrate needs a connection to an existing database.
>>
>> I understand that for certain commands, it needs the database to generate
; Wondering why sqlmigrate needs a connection to an existing database.
>
> I understand that for certain commands, it needs the database to generate
> the migration. But for most (basic) commands, no connection is really
> needed.
>
> For example, I created a test project
> &l
Wondering why sqlmigrate needs a connection to an existing database.
I understand that for certain commands, it needs the database to generate
the migration. But for most (basic) commands, no connection is really
needed.
For example, I created a test project
<https://github.com/ShmuelTrei
n my app or is just
> migrate enough?* And also what are the points to remember while using
> inspectdb on an existing database.
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
>
ase. I just want it for data
>> retrieval.
>>
>> *Should I definitely run migrate/makemigrations?*
>>
>> *After inspectdb should i apply makemigrations on my app or is just
>> migrate enough?* And also what are the points to remember while using
>&g
Have you created a new model field ?
Then put on that null= "True"
Example ::
Name = Model.CharField(max_legth,* null= "True"*)
On Fri, Jun 4, 2021 at 7:59 PM OSA-33 SyCS Atik Rangnekar <
atikrangneka...@gmail.com> wrote:
> It think the problem is there is null values/bytes
>
> On Fri, 4 Jun, 2
It think the problem is there is null values/bytes
On Fri, 4 Jun, 2021, 6:28 pm Ankita Sharma,
wrote:
> Hello All
> Hope all are doing great.
> The issue is as follows:
> I have already existing 2 MSSql databases from which I have migrated
> required tables into models.py
> Now I am not able to
Check the error in Google
Mahendra Yadav
On Fri, 4 Jun 2021, 18:28 Ankita Sharma, wrote:
> Hello All
> Hope all are doing great.
> The issue is as follows:
> I have already existing 2 MSSql databases from which I have migrated
> required tables into models.py
> Now I am not able to do makemigra
h?* And also what are the points to remember while using
> inspectdb on an existing database.
>
> Thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop re
Hello All
Hope all are doing great.
The issue is as follows:
I have already existing 2 MSSql databases from which I have migrated
required tables into models.py
Now I am not able to do makemigrations on one of them. Below is the error:
from records.models.transactions_east import AdgSrtransaction
Should I definitely run migrate/makemigrations?*
*After inspectdb should i apply makemigrations on my app or is just migrate
enough?* And also what are the points to remember while using inspectdb on
an existing database.
Thanks in advance
--
You received this message because you are subscribed to th
Perhaps there is a utility program that can do that. Something like
converter. Have you look in web foros ?
El jueves, 7 de enero de 2021 a las 11:58:36 UTC-3,
pe...@oneilinteractive.com escribió:
> Jérémy,
>
> It all depends on the Database which route to take. Is it one table,
> multiple ta
Jérémy,
It all depends on the Database which route to take. Is it one table,
multiple tab;es, what are the relationship?
My plan of attack would be:
1. Create all models in Django as you want them to be. Use the Django
standards to name your new fields [1].
2. Let Django handle the field n
Hi,
I'm working on my first Django project. Already read the tutorial but
following along it to be sure not to miss anything.
I've been asked to rebuild a pre-existing website. It's basic in
functionality: various users create complete descriptions of heritage
items in the admin area, and th
Yes, you can write your own Authentication Backend with your custom
authentication logic
https://docs.djangoproject.com/en/2.2/topics/auth/customizing/
On Wed, Jun 5, 2019 at 8:53 AM michael ababao
wrote:
> I am new to django and i would like to know if it is possible to use the
> django user a
I am new to django and i would like to know if it is possible to use the django
user authentication using a different database for users?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails f
Have you done a tutorial on django ?
Part 4 of the official tutorial deal with altering an object from your
database according to a form.
https://docs.djangoproject.com/en/1.10/intro/tutorial04/
The django girls tutorial have a section on how to create an object
from a form and save it in your da
I know how to save a record from shell command in command prompt.
I want to get values from html form and save it to database table which I
have created.Please help on this I am not getting proper answer or code on
net.
On Monday, December 26, 2016 at 9:54:25 AM UTC+5:30, Rasika wrote:
>
> yes
How do i retrieve internet browsing history using python django??
can any one help me??
regards,
hemanth.p.
On Mon, Dec 26, 2016 at 9:54 AM, Rasika
wrote:
> yes it worked well.
> Thank you so much
>
>
> On Saturday, December 24, 2016 at 9:46:04 AM UTC+5:30, Collin Anderson
> wrote:
>>
>> Hi,
>
yes it worked well.
Thank you so much
On Saturday, December 24, 2016 at 9:46:04 AM UTC+5:30, Collin Anderson
wrote:
>
> Hi,
>
> You could try re-installing psycopg2 to see if that fixes it.
>
> Collin
>
> On Thursday, December 22, 2016 at 1:55:53 AM UTC-6, Rasika wrote:
>>
>>
>> I am followed the
Hi,
You could try re-installing psycopg2 to see if that fixes it.
Collin
On Thursday, December 22, 2016 at 1:55:53 AM UTC-6, Rasika wrote:
>
>
> I am followed the steps as I am getting in tutorials
> when I run the command :
> python manage.py migrate
> this is giving me following error
>
>
I am followed the steps as I am getting in tutorials
when I run the command :
python manage.py migrate
this is giving me following error
from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: DLL load failed: The specified module could not be found.
During handlin
Suggest you look at Django authentication:
https://docs.djangoproject.com/en/1.10/topics/auth/customizing/
"Authentication backends provide an extensible system for when a username
and password stored with the user model need to be authenticated against a
different service than Django’s default.
Hello all,
I am using Django framework for our website.I am stuck on the database
connectivity.I want to change the default database sqlite with our for test
purpose but in that also I am getting problems.
My aim is I have to use our compnies database so that already registered
users have
thanks for everyone's input. I'll run parallel implementations and see
which one works best for the long haul.
--
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
iday, 6 March 2015 23:39:33 UTC+2, Robert Daniels wrote:
>>
>> I understand it is possible to use an existing database on a new Django
>> project.
>>
>> As I see it, I have 2 choices.
>>
>> 1 - Use the existing database and deal with it in that fashion.
&
On Friday, 6 March 2015 23:39:33 UTC+2, Robert Daniels wrote:
>
> I understand it is possible to use an existing database on a new Django
> project.
>
> As I see it, I have 2 choices.
>
> 1 - Use the existing database and deal with it in that fashion.
>
> or
>
> 2
I'm not sure this is of help but I took was the easy way out. In my
models.py for each of my models.Model I added
Class Meta:
managed = False
That worked for me - the existing database tables were not touched.
Johnf
On 03/06/2015 01:18 PM, Robert Daniels wrote:
I understand
I understand it is possible to use an existing database on a new Django
project.
As I see it, I have 2 choices.
1 - Use the existing database and deal with it in that fashion.
or
2 - Create a new project to store the same type of data as if there were no
existing database, Then write a
g wrote:
>>
>> Yes, it'd be nice to have all the data from the existing database.
>> I am aware the loading fixtures way, but I will need to do that every time
>> I know the existing database has changed a lot.
>> So just copy the data when creating the test data
Consider using model factories (you can roll your own) or FactoryBoy
https://factoryboy.readthedocs.org/en/latest/
K
On Friday, October 4, 2013 9:17:51 AM UTC-7, Tianyi Wang wrote:
>
> Yes, it'd be nice to have all the data from the existing database.
> I am aware the loading fix
Yes, it'd be nice to have all the data from the existing database.
I am aware the loading fixtures way, but I will need to do that every time
I know the existing database has changed a lot.
So just copy the data when creating the test database seems more
convenient.
Tianyi
On Frid
Do you always want all of the data from the existing database, or is this
just a quick way to have "real data" for testing.
If it is the latter I would use manage.py dumpdata to generate test
fixtures. You can load the fixtures in you tests as needed.
Chaim
On Friday, October 4, 20
Hi,
When I run my tests, I'd like it to copy an existing database with all the
data when create the testing database.
I never thought about this till one of my colleague uses POSTGIS_TEMPLATE =
DATABASES['default']['NAME'] for his tests.
Because we use GeoD
That's exactly what i did!
In my Nodes table i have this one "domains = models.ForeignKey(Domains)" so
now i can see the dependecy i want?Or? Is there any way when i press
"Domains" on my interface to be able to see the "Nodes" table graphically?
--
You received this message because you are sub
create a FK on Node to Domain
On Mon, May 13, 2013 at 2:37 PM, Giorgos Kontogiorgakis <
shortgeorge...@yahoo.com> wrote:
> Thanks a lot for your help mate!It was silly by me that i did the steps in
> wrong order!I added the foreign-key successfully now!But i have 1 more
> question if you can hel
Thanks a lot for your help mate!It was silly by me that i did the steps in
wrong order!I added the foreign-key successfully now!But i have 1 more
question if you can help me!I already have,let's say,a table named Domain
and a table name Nodes and i want to make a dependecy on my webinterface
wh
rge...@yahoo.com> wrote:
> Hi everyone,
> I'm trying to add a single foreign Key on an existing Database using
> Django.I searched on internet and i found out South migration.I installed
> South and i tried to add the Foreign Key but when i call "./manage.py
> schemamigrat
Hi everyone,
I'm trying to add a single foreign Key on an existing Database using
Django.I searched on internet and i found out South migration.I installed
South and i tried to add the Foreign Key but when i call "./manage.py
schemamigration myapp --auto" (myapp is the of my exis
it.
Regards,
Carlos Ruvalcaba
On Wed, Jan 30, 2013 at 7:01 PM, wrote:
> I have an existing database but I would like to design around that database
> using django...can I do this without altering the database in anyways
> significantly?
>
> --
> You received this message because y
I have an existing database but I would like to design around that database
using django...can I do this without altering the database in anyways
significantly?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
finally I got the answer...
http://www.sqlalchemy.org/trac/wiki/SqlSoup
http://spyced.blogspot.com/2006/04/introducing-sqlsoup.html
from sqlalchemy.ext.sqlsoup import SqlSoup
db = SqlSoup('oracle://z:z@xe')
rp = db.bind.execute('select * from mupp')
a = rp.fetchall()
a[0].kodeupp
a[0].na
On Monday 31 January 2011 18:21:40 Ian wrote:
> On Jan 31, 3:29 am, arief nur andono wrote:
> > oh please...
> >
> > i need only to query the table, have no access to modified the table
> >
> > why there is no way query the database and then make the output as
> > object??
>
> You don't need to
On Jan 31, 3:29 am, arief nur andono wrote:
> oh please...
>
> i need only to query the table, have no access to modified the table
>
> why there is no way query the database and then make the output as object??
You don't need to modify the table. That was just a recommendation.
I also suggested
errr...what do you think
i read at
http://code.activestate.com/recipes/285262-create-objects-from-variable-class-names/
class Bunch(dict):
def __init__(self,**kw):
dict.__init__(self,kw)
self.__dict__ = self
fruit = Bunch(apples=1, pears=2)
print fruit.apples
print fr
Arief,
Just do a search and replace in your text file along the lines of,
search for,
max_digits=0, decimal_places=-127
replace,
max_digits=10, decimal_places=2
And Django should be happy.
aid
On 31 Jan 2011, at 10:29, arief nur andono wrote:
> oh please...
>
> i need only to query the t
oh please...
i need only to query the table, have no access to modified the table
why there is no way query the database and then make the output as object??
2011/1/31 Ian
> On Jan 31, 12:20 am, arief nur andono
> wrote:
> > class TempJmlGangguanPyl(models.Model):
> > singkatpyl = models.
On Jan 31, 12:20 am, arief nur andono
wrote:
> class TempJmlGangguanPyl(models.Model):
> singkatpyl = models.CharField(max_length=4, blank=True)
> singkatgrd = models.CharField(max_length=4, blank=True)
> jumlah_gangguan = models.DecimalField(null=True, max_digits=0,
> decimal_places=-
2011/1/31 arief nur andono
> sorry for undetail, i use oracle
>
> this is output example from my inspectdb, this is one of 300 table i have
>
> from django.db import models
>
> class TempJmlGangguanPyl(models.Model):
> singkatpyl = models.CharField(max_length=4, blank=True)
> singkatgrd =
in my computer i use oracle XE and oracle XE in production
actually i write an web application to replace desktop application with
Visual Basic that has existing oracle table
i thinking of django because it's for perfectionist with deadlines
some people ask me to take a look to codeigniter since
You didn't specify more details about Oracle version that you're using but
from my experience with inspectdb and Oracle are not good ones, even though it
works or at least with databases I've tried it with.
I've decided - specially for Oracle to do it always by hand. That way, even it
seems a s
this is an instruction that i forgot
# This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# Feel free to rename the models, but don't rename db_
sorry for undetail, i use oracle
this is output example from my inspectdb, this is one of 300 table i have
from django.db import models
class TempJmlGangguanPyl(models.Model):
singkatpyl = models.CharField(max_length=4, blank=True)
singkatgrd = models.CharField(max_length=4, blank=True)
arief, try see this howto:
http://docs.djangoproject.com/en/1.2/howto/legacy-databases/
On Sun, Jan 30, 2011 at 12:50 PM, arief nur andono wrote:
> i've tried inspect-db but i still have no vitctory
>
> it's get error while i recompile back it to oracle by syncdb
> errr...and something i don't k
> i've tried inspect-db but i still have no vitctory
Err, what exactly does that mean? Did you get an error message?
> it's get error while i recompile back it to oracle by syncdb
Again - difficult to help you if you don't say *what* error.
> errr...and something i don't know, if i syncdb,
i've tried inspect-db but i still have no vitctory
it's get error while i recompile back it to oracle by syncdb
errr...and something i don't know, if i syncdb, what's will happen to the
data? will i lost it??
2011/1/30 Shawn Milochik
> Try inspectdb:
>
> http://docs.djangoproject.com/en/dev/ref
Try inspectdb:
http://docs.djangoproject.com/en/dev/ref/django-admin/#inspectdb
Shawn
--
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 emai
Search documentation for "inspectdb"
HTH
Jirka
On 30/01/2011, arief nur andono wrote:
> is there anybody could save my time to make django work with existing
> database so i need only create the sql in model (not have to define
> table and field in models.py)
>
&g
is there anybody could save my time to make django work with existing
database so i need only create the sql in model (not have to define
table and field in models.py)
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this g
On 10/2/07, Thejaswi Puthraya <[EMAIL PROTECTED]> wrote:
>
> [snipped]
> > First and before the feeding of the database, after creating my
> > database in the mysql prompt by inserting SQL code could django
> > analyse my clean database and create class for each table?
> > with the right field typ
eg_IAP <[EMAIL PROTECTED]> wrote:
>
>
> HI, yesterday i send a message which asks of using an existing
> database with Django.
>
> Thanks to the guy who has answered me, but i have to explain a little
> bit more my problem.
>
> I 'm in charge of developping an a
[snipped]
> First and before the feeding of the database, after creating my
> database in the mysql prompt by inserting SQL code could django
> analyse my clean database and create class for each table?
> with the right field type?
Try using the inspectdb command. Refer to
http://www.djangoprojec
HI, yesterday i send a message which asks of using an existing
database with Django.
Thanks to the guy who has answered me, but i have to explain a little
bit more my problem.
I 'm in charge of developping an astronomic images and metadata
database for scientists in mysql, composed by 9 t
HI, yesterday i send a message which asks of using an existing
database with Django.
Thanks to the guy who has answered me, but i have to explain a little
bit more my problem.
I 'm in charge of developping an astronomic images and metadata
database for scientists in mysql, composed by 9 t
Am 2007-10-01 um 14:25 schrieb Greg_IAP:
> i tried to understand if i could use django to do some modifications
> to an existing database...in vain.
> I understand that i must rewrite the structure of the database through
> django to produce a database model and to permit django t
Hi everybody,
i tried to understand if i could use django to do some modifications
to an existing database...in vain.
I understand that i must rewrite the structure of the database through
django to produce a database model and to permit django to understand
my database structure through classes
I'm trying to setup a Django app based on an existing sqlite3 db.
Everything going swimmingly, except for one pesky TimeField...
The problem seems to be that the db table has this column declared to
be of type TIME, and the django model thinks its of type TimeField.
But the data is of the format
(This is a duplicate of a message I sent yesterday via Google Groups
which doesn't seem to have showed up yet)
I'm trying to use an existing sqlite3 database with a new Django
application. All going swimmingly apart from a problem with one db
column.
The db column is of type TIME, the Django mod
NP. Thanks guys, excellent responses!On 6/19/06, Josh Trutwin <[EMAIL PROTECTED]> wrote:
On Mon, 19 Jun 2006 14:18:54 +0100"Phil Powell" <
[EMAIL PROTECTED]> wrote:>> This ought to do the job:>> http://www.djangoproject.com/documentation/legacy_databases/
Definately - it does a decent job building
On Mon, 19 Jun 2006 14:18:54 +0100
"Phil Powell" <[EMAIL PROTECTED]> wrote:
>
> This ought to do the job:
>
> http://www.djangoproject.com/documentation/legacy_databases/
Definately - it does a decent job building a starting Model, but
you will definately have to go through it and make sure ev
Malcolm Tredinnick wrote:
> On Mon, 2006-06-19 at 13:04 +, Mike Crowe wrote:
> There is some support for this. See here:
> http://www.djangoproject.com/documentation/django_admin/#inspectdb
Hey, and let me add that you might want to check ticket 1561. Malcolm told me
that in the meantime for
This ought to do the job:
http://www.djangoproject.com/documentation/legacy_databases/
-Phil
On 19/06/06, Mike Crowe <[EMAIL PROTECTED]> wrote:
>
> Hi folks,
>
> I'm just starting looking at a django backend for a system we need to
> redo. The existing db is MSSQL (yes, I know it's not quite s
On Mon, 2006-06-19 at 13:04 +, Mike Crowe wrote:
> Hi folks,
>
> I'm just starting looking at a django backend for a system we need to
> redo. The existing db is MSSQL (yes, I know it's not quite supported
> yet). We need a system which supports most of the adodb classes. We
> will start w
Hi folks,
I'm just starting looking at a django backend for a system we need to
redo. The existing db is MSSQL (yes, I know it's not quite supported
yet). We need a system which supports most of the adodb classes. We
will start with supported DB's, and hopefully the additional ones will
be rea
Hi again,
I guess it's time to start experimmenting then :)
thanks for the help
Cheers
--~--~-~--~~~---~--~~
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@google
Hey Filipe,
Filipe wrote:
> Custom SQL + Manipulators does sound as the way to use my own model
> classes. It doesn't seem as the most straightforward way to use Django
> though, anyone out there actually working with Django this way?
>
> Michael, are you actually using Django (ORM included) wit
> Filipe, what kinds of tables use composite primary keys for you?
> [ ] association tables for many-to-many relations
> [ ] dependent tables
> [ ] "inheritence" look-alikes
The first two, "association tables for many-to-many relations" and
"dependent tables". Inheritance look-alikes also exis
Joseph Kocherhans wrote:
> On 5/16/06, Filipe <[EMAIL PROTECTED]> wrote:
>> Do you think I'll find difficulties in using model classes with my own
>> data persistency logic? In such case, will I loose other features
>> besides the ORMapping itself? (I've read something about loosing
>> autogenerat
On 5/16/06, Filipe <[EMAIL PROTECTED]> wrote:
> Do you think I'll find difficulties in using model classes with my own
> data persistency logic? In such case, will I loose other features
> besides the ORMapping itself? (I've read something about loosing
> autogenerated admin pages, form validation
I fear to get into trouble if I choose to use inspectdb, there are a
lot of composited primary keys and many-to many-relations in this DB (I
know that the ORM in Django supports m-to-m relations, but knowing it
is usually a sensible point in ORMs, I would prefer not to use an ORM
just yet).
Still
m
> "meta.Model".
>
> My question is, how about using an already existing database? I will
> need to use a database of an application that is currently in
> production (I can't touch it's schema), so the DB won't be generated
> from my model in Django. Is it
Django, as long as one does not inherit models from
> "meta.Model".
Correct.
> My question is, how about using an already existing database? I will
> need to use a database of an application that is currently in
> production (I can't touch it's schema), so the DB won&
On Monday 15 May 2006 4:25 pm, Filipe wrote:
> My question is, how about using an already existing database? I
> will need to use a database of an application that is currently
> in production (I can't touch it's schema), so the DB won't be
> generated from my model i
estion is, how about using an already existing database? I will
need to use a database of an application that is currently in
production (I can't touch it's schema), so the DB won't be generated
from my model in Django. Is it possible to use model classes without
the object-relational m
On Thursday 22 Sep 2005 10:55 pm, jocknerd wrote:
> Make the change to the model and then run django-admin.py sql
> myproject. I'm using PostgreSQL so I type psql databasename and then
> create the new table with the sql code for the new table that was
> generated previously. Then I restart the
On 9/22/05, jocknerd <[EMAIL PROTECTED]> wrote:
> What's the easiest way to add a table to an existing database. I'm
> currently destroying the database and recreating it but this will be a
> problem once I've got real data. I was thinking about doing this:
>
&
What's the easiest way to add a table to an existing database. I'm
currently destroying the database and recreating it but this will be a
problem once I've got real data. I was thinking about doing this:
Make the change to the model and then run django-admin.py sql
myproj
On Fri, 2005-08-19 at 08:35 +0200, Andreas Kostyrka wrote:
> And there is completely another answer that would match with the
> question: How to write a completely "independant" model -> which APIs
> must be implemented by a model. (Consider "legacy databases" that are no
> SQL databases.)
I am
Am Donnerstag, den 18.08.2005, 15:52 -0500 schrieb Adrian Holovaty:
> On 8/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > I'm in the process of doing this myself. I'm porting a job monitoring
> > system to django. It was written in python before, but the web front
> > end was written in PH
On 8/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm in the process of doing this myself. I'm porting a job monitoring
> system to django. It was written in python before, but the web front
> end was written in PHP. Seems to be going well so far. I have the model
> and can access the API
I'm in the process of doing this myself. I'm porting a job monitoring
system to django. It was written in python before, but the web front
end was written in PHP. Seems to be going well so far. I have the model
and can access the APIs. I've come across some issues, but am new to
django, so am work
On Aug 18, 2005, at 10:32 AM, dharms wrote:
This is a complete newbie question. I'm curious what experiences
people
had adopting Django to an already existing database (in use by other
software and thus not easily changeable). Do you just have to create a
model that matches the exis
This is a complete newbie question. I'm curious what experiences people
had adopting Django to an already existing database (in use by other
software and thus not easily changeable). Do you just have to create a
model that matches the exisiting database, and what may be some
caveats?
Thanks!
D.
95 matches
Mail list logo