I am building a Django User profile management portal. In one of the
sections of the website i need pull data from an external database(Its
managed by someone else, i have access to it).
How can i achieve this and also can someone please point me to a
working example.
Thanks
--
You received thi
On Jul 17, 10:36 pm, Lycan wrote:
> I am building a Django User profile management portal. In one of the
> sections of the website i need pull data from an external database(Its
> managed by someone else, i have access to it).
>
> How can i achieve this and also can someone please point me to a
Or maybe you want to authenticate using a remote resource?
Authentication using REMOTE_USER
https://docs.djangoproject.com/en/dev/howto/auth-remote-user/
Cheers,
AT
On Mon, Jul 18, 2011 at 6:08 AM, Uros Trebec wrote:
>
>
> On Jul 17, 10:36 pm, Lycan wrote:
> > I am building a Django User pro
Thank you both!
On Jul 18, 1:39 pm, Andre Terra wrote:
> Or maybe you want to authenticate using a remote resource?
>
> Authentication using
> REMOTE_USERhttps://docs.djangoproject.com/en/dev/howto/auth-remote-user/
>
> Cheers,
> AT
>
>
>
>
>
>
>
> On Mon, Jul 18, 2011 at 6:08 AM, Uros Trebec w
Hi there, I am new to Django and I have set up my models and admin
site working as I want. Perfect!
But, I have a problem; I am making a little project for a search
engine so I have a webcrawler, so my question is: Is there a way to
acces and modify the database with the program? (not with the she
Hi,
how can create python script in terminal to update the data from old
databases into new databases automaticaly
--
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, sen
Hi,
I want to use Django to query two legacy Oracle databases.
>From what I have read Django can handle legacy databases provided the
primary key is an auto-incremented integer field in the tables of the
databases.
Does Django work in such a way that it will take these databases and
rebu
d googled for a bit without any luck, so i'm here to ask
you for help.
I would like to have two main databases, i see this is covered in the
docs and is nicely implemented for general use cases. However, i also
need to support dynamic database creation - i.e. one or more databases
created from a
Assuming your PYTHONPATH is set up properly, and your
DJANGO_SETTINGS_MODULE is correct or you import your settings file from
your crawler, then you can just import and use the models.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post t
I'm spinning up a new project and nearly all of the data I need to store
can be normalized. Along with this normalized data is one piece that is
better suited to a nosql database.
The use case is that the normalized data will be fetched often, is very
tabular in nature, and the additional data
Hi everyone,
I am using 2 databases in my django app. One is default sqlite and second
is postgre.
Now, I make a simple model named Check1 in my app, having only title
attribute.
class Check1(models.Model):
title = models.CharField(max_length=100)
Now, in my shell,
>>
Hello everyone,
This is my first post on this list, so please by gentle and patient ;)
I would like to ask, if it is possible to have DJango running on one
machine, and have several databases (each with different content) on
other machines. Basically I would specify a few tables, and each would
Is that project dead or maybe still unofficial supported?
--~--~-~--~~~---~--~~
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
Hi everyone,
I am new to Django. I have started a new project running on my localhost.
Rather than using the default sqlite database, I changed it to mysql with
the following settings on MacOS High Sierra v13.10.6:
DATABASES = {
'default': {
'ENGINE': '
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'mysql',
'USER': 'root',
'PASSWORD': 'root',
'HOST': '',
&
Bro please explain the scenario and the problem.
Nobody will not give proper answer until you proper details.
On Fri, 1 Dec 2023 at 7:52 PM, Karim Dahman
wrote:
> Hi,
> how can create python script in terminal to update the data from old
> databases into new databases automaticaly
>
Well yes you can dependong on your databases. What kind of databases do you
have?
On Friday, December 1, 2023 at 2:43:20 PM UTC Madhusudhan Reddy wrote:
> Bro please explain the scenario and the problem.
> Nobody will not give proper answer until you proper details.
>
> On Fri, 1
Well you can depending on your databases, what kinda dtatbase do you have?
On Friday, December 1, 2023 at 2:23:00 PM UTC Karim Dahman wrote:
> Hi,
> how can create python script in terminal to update the data from old
> databases into new databases automaticaly
>
--
You received
create python script in terminal to update the data from old
databases into new databases automaticaly
--
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
Your first obstacle (currently) is going to be getting django to work
with multiple databases (the two Oracle and whatever its base DB is).
This is achievable, but undocumented and involves knowing the
internals of the QuerySet. Once you have that setup and functional (I
would create separate
Hey Guys,
I'm about to start developing a web front-end for a large database being
developed by a colleague. The web front-end is only going to be
accessing a sub-set of the database, and mostly via 'views' that will be
specific to the requirements of the web frontend.
I want to use Django,
Hey Guys,
I'm about to start developing a web front-end for a large database being
developed by a colleague. The web front-end is only going to be
accessing a sub-set of the database, and mostly via 'views' that will be
specific to the requirements of the web frontend.
I want to use Django,
I'm trying to dump a 3GB MySQL database using manage.py dumpdata, but
it's getting killed after 2 hours. Is there any way to get it to use
less memory/cpu so it doesn't get killed and completes the dump?
--~--~-~--~~~---~--~~
You received this message because you ar
Hi,
Is there any tool for visualizing database data? I mean for example,
to build graphics like piechart, linechart, classification of database
data in a frequency table (for example creating preaty diagrams like
piwik [http://piwik.org/), or with R [http://www.r-project.org/], or
gnuplot, )
Hi, I'm currently starting a project in django, and there's some data
already in another database.
We're planning to go and use that information (more specifically user
information) in the django application.
However, this forms several problems:
1) There are 2 different data
Hello,
I started to play with Django some weeks ago. I'm very impressed with it and
making some tests with an application I have already running...
The problem is that I need to connect to two databases using two different
engines (MS SQL Server and Mysql).
I found a doc about using 2 data
would make
adding a store a breeze . But the problem is that these databases / feeds
might be very different . The datamodels might be very different . So how do
I integrate such databases. I just need to extract the product and its price
from a store.
--
A-M-I-T S|S
in the db. and i couldnt
even figure out if the DATABASE_ROUTERS are correctly configured and
working (django don't throws an error if the DATABASE_ROUTERS =
['foo.bar'])
### Django version 1.2 alpha 1 SVN-12120
### project/settings.py
DATABASES = {
'defau
Is it better to have one large database with all the data for a web
site in it or many smaller databases that hold data for specific
area's of a web site in it?
Thinking that one database with some sort of clustering technology is
better than trying to manage many smaller databases?
Als
Strictly, joining across databases is usually impossible. However, I'm
looking at mechanisms to achieve that functionality and I just wanted
to get a sanity check to see that what I'm doing makes sense or if
there is a better way. I have one database in Postgres and a legacy
database i
Hello,
I am kind of new to Django and am trying to understand multi-db. Does
anyone know where i can download a complete working example of django
project implementing multi-db?
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
On Tue, Jul 5, 2011 at 6:39 PM, Nick wrote:
> However, i also
> need to support dynamic database creation - i.e. one or more databases
> created from a single model (think of these as customer specific
> databases). I will be using sqlite and want to save the path/
> connection
es handle json or xml documents
quite well (in fact, arguably better than most "document databases"
out there)
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emai
It depends what you need,
We use redis for non sql, and postgres for sql,
You can use an id field to have a link between them.
Django 1.8 has a support for postgres specific fields like HStore, maybe
this is good enough for you?
Galia
On Tuesday, May 19, 2015 at 2:40:17 AM UTC+2, Roger Dunn wrot
It is going to use the database named default.
Checkout the doc on using mutiple DBs
https://docs.djangoproject.com/en/1.10/topics/db/multi-db/
Dylan
On Sun, Feb 26, 2017 at 11:17 PM, Luvpreet Singh
wrote:
> Hi everyone,
>
> I am using 2 databases in my django app. One is default s
/topics/db/multi-db/
>
> Dylan
>
>
> On Sun, Feb 26, 2017 at 11:17 PM, Luvpreet Singh
> wrote:
>
>> Hi everyone,
>>
>> I am using 2 databases in my django app. One is default sqlite and second
>> is postgre.
>>
>> Now, I make a simple mode
is going to use the database named default.
>> Checkout the doc on using mutiple DBs
>> https://docs.djangoproject.com/en/1.10/topics/db/multi-db/
>>
>> Dylan
>>
>>
>> On Sun, Feb 26, 2017 at 11:17 PM, Luvpreet Singh
>> wrote:
>>>
>>>
I am using 2 postgres databases in my django app.
'newpostgre': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'new_postgre2',
'USER': 'tester',
Hi,
I am intending to use two different databases. Essentially retrieve
some data from a remote database and have some data in the local
database. Is such configuration supported in Django? Any pointers to
such configuration possibility?
thanks,
Ravi
On 16/04/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> display this data. Would be also possible, to have different database
> types (i would like to have several sqlite databases and one postgres
> running)?
>
> I need all this for scalability reasons. I am c
This is my first post on this list, so please by gentle and patient ;)
>
> I would like to ask, if it is possible to have DJango running on one
> machine, and have several databases (each with different content) on
> other machines. Basically I would specify a few tables, and
I've never seen anything that would make this "easy" in Django itself.
You will probably have more luck looking into sql proxies. Django will
talk to the proxy, the proxy will figure out what database to actually
query and return results to Django. This way Django doesn't have to
change, do
rst post on this list, so please by gentle and patient ;)
>
> I would like to ask, if it is possible to have DJango running on one
> machine, and have several databases (each with different content) on
> other machines. Basically I would specify a few tables, and each would
> be in dif
e,
> >
> > This is my first post on this list, so please by gentle and patient ;)
> >
> > I would like to ask, if it is possible to have DJango running on one
> > machine, and have several databases (each with different content) on
> > other machines. Basically
e,
>
> > > This is my first post on this list, so please by gentle and patient ;)
>
> > > I would like to ask, if it is possible to have DJango running on one
> > > machine, and have several databases (each with different content) on
> > > other machine
t; > > Ravi.
>
> > > On Apr 16, 6:19 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> > > > Hello everyone,
>
> > > > This is my first post on this list, so please by gentle and patient ;)
>
> > > > I would like to
Found it. http://softwaremaniacs.org/soft/mysql_cluster/en/ (found
through Simon Willison's blog). It looks like my memory was wrong
though, because it doesn't switch databases automatically depending on
query type. It leaves it up to the view to decide which database to
use. If you
Anyone? That was greate idea but i see that last update was long time
ago... i need multiple databases in my project so if anyone know
anything about this (maybe own solutions in this area?) please inform
me.
On Jun 24, 6:14 pm, grassoalvaro <[EMAIL PROTECTED]> wrote:
> Is that projec
On 6/25/07, grassoalvaro <[EMAIL PROTECTED]> wrote:
>
> Anyone? That was greate idea but i see that last update was long time
> ago... i need multiple databases in my project so if anyone know
> anything about this (maybe own solutions in this area?) please inform
> me.
>
... someone will give him permissions to commit.
On Jun 25, 3:19 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 6/25/07, grassoalvaro <[EMAIL PROTECTED]> wrote:
>
>
>
> > Anyone? That was greate idea but i see that last update was long time
> > ago...
On 6/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Ben Ford is working on merging in changes from the trunk in with the
> branch... at this time neither he or myself ( I had planned on doing
> this but found he was farther ahead of me ) have commit permissions to
> the project... but hopef
Hi Guys,
I'm in the middle of the latest set of updates (the merge of the
oracle branch with trunk), the only thing left to do is sort out the
core.management module (68 conflicts!!). I should have that cracked by
the end of today and it would be great to get it checked in so others
could help wit
I was hoping to use Django in a web management UI for a server that I
support, where new UIs are added as new applications are installed.
Due to this plugin requirement, I had planned to model that with one
large Django project, where each new plugin was a Django application.
Unfortunately it wou
I read through all the relevant documentation but I couldn't find any
info on an issue I am about to face: accessing multiple tables in
different databases with Django.
Here's a quick example:
My Django app (MyApp) has r/w access to the MyApp database on
MySQLserver1, and all of My
hi,
I was wondering if django provides the possibility to split up the
database. I don't feel comfortable with having all the auth tables, the
flatpages, the comment system and such in the same db as the content.
Maybe it's as easy as overwriting the settings.py file in an app?
Even if this can be
As I've mentioned in my blog in the past, I'm porting my nascent
flashcard testing website, Quisition, over to use Django.
Because a lot of data is specific to a user, my system would be a lot
more scalable if I had a separate sqlite database for each user, just
for the user-specific inform
Hello:
I am Rashmit Pankhania and my doubt is regarding using multiple(two)
databases and i want to create particular table in only one database but
after migrating it happens on both.Also after migrating it show only
django-migration table in second database.you can follow the code on
https
hi i m here first time, my doubt is regarding using multiple(two) databases
and i want to create particular table in only one database but after
migrating it happens on both.you can follow the code on
https://dpaste.de/arP9
--
You received this message because you are subscribed to the Google
> the following settings on MacOS High Sierra v13.10.6:
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'mysql',
> 'USER': 'root',
> 'P
ne,
>>
>> I am new to Django. I have started a new project running on my localhost.
>>
>> Rather than using the default sqlite database, I changed it to mysql with
>>
>> the following settings on MacOS High Sierra v13.10.6:
>>
>> DATABASES =
new project running on my localhost.
>> Rather than using the default sqlite database, I changed it to mysql with
>> the following settings on MacOS High Sierra v13.10.6:
>>
>> DATABASES = {
>> 'default': {
>> 'ENGINE': 'djang
ather than using the default sqlite database, I changed it to
>>> mysql with the following settings on MacOS High Sierra v13.10.6:
>>>
>>> DATABASES = {
>>> 'default': {
>>> 'ENGINE': 'django.db.back
Hi Cool Smith,
On 12/7/18 10:11 AM, Cool Smith wrote:
I tried starting MYSQL server on System Preferences. However, it seems
the server will shutdown automatically a few seconds later.
You would probably have a better chance of getting useful responses if
you posted your question in a forum
yone,
>>
>> I am new to Django. I have started a new project running on my localhost.
>> Rather than using the default sqlite database, I changed it to mysql with
>> the following settings on MacOS High Sierra v13.10.6:
>>
>> DATABASES = {
>> 'default
ather than using the default sqlite database, I changed it to
>>> mysql with the following settings on MacOS High Sierra v13.10.6:
>>>
>>> DATABASES = {
>>> 'default': {
>>> 'ENGINE': 'django.db.backends.mysql',
>
I'm relatively new to Django and web development in general but have decent
coding experience.
My questions are primarily related to how to work with models to create a
ranking system.
Some background:
I'm an officer for an academic school team and am trying to implement a
ranking system that de
Hello,
I'm building a PoC for a multi-tenant app where I'm trying to use the same
schema across multiple databases with Django instance. I've got a couple of
questions and I'd be happy to have some input
1. Is there a way to define the *using()* function to use wi
jango.db import connections
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_em...@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE
that the "natural" database is
your Django-specific one and then accesses to the other database is done
via a custom manager.
There are a few blog posts around about accessing multiple databases in
ways that work reliably, until such time as Django ships with it by
default. I'l
On Tue, 2008-12-16 at 14:28 +1100, Malcolm Tredinnick wrote:
>
> On Tue, 2008-12-16 at 15:25 +1300, Tom Eastman wrote:
> > Hey Guys,
> >
> > I'm about to start developing a web front-end for a large database being
> > developed by a colleague. The web front-end is only going to be
> > access
Malcolm Tredinnick wrote:
> In hindsight, I probably wasn't clear as to why I'm suggesting this:
> there are a lot of places where Django would like to write to your
> database (sessions, auth lookups, ...). You can configure around and
> away from each of those in turn, but, if this were me, I'd
I've been following the discussion about supporting multiple
databases within one project (primarily on a per-app or per-model
basis) with interest and look forward to the feature getting
solidified and implemented into the trunk one day. That doesn't appear
to be a near term even
On Mon, 2009-08-10 at 17:02 -0700, Chris wrote:
> I'm trying to dump a 3GB MySQL database using manage.py dumpdata, but
> it's getting killed after 2 hours. Is there any way to get it to use
> less memory/cpu so it doesn't get killed and completes the dump?
Is there some particular reason you nee
I guess I should have prefixed that by saying my goal is to migrate
from MySQL to PostgreSQL. However, I'm having trouble finding a tool
to do this, so I thought I'd try Django's backend neutral
dumpdata/loaddata feature.
Chris
On Mon, Aug 10, 2009 at 9:48 PM, Malcolm
Tredinnick wrote:
>
> On Mo
On Tue, Aug 11, 2009 at 5:37 AM, Chris Spencer wrote:
>
> I guess I should have prefixed that by saying my goal is to migrate
> from MySQL to PostgreSQL. However, I'm having trouble finding a tool
> to do this, so I thought I'd try Django's backend neutral
> dumpdata/loaddata feature.
>
> Chris
>
I've had a look at http://www.djangoproject.com/documentation/legacy_databases/
but it doesn't cover too much detail...
I've got a mySQL 5 database with a number of tables. The data
structure requires a few complex queries that I don't see how I can do
through the models.
How would I then do thi
There are a number of different toolkits that could do this for you, here
are three that looks usable:
http://code.google.com/apis/chart/
http://developer.yahoo.com/yui/charts/
http://matplotlib.sourceforge.net/
With (at least) matplotlib you could make your charts automatically in your
model, sin
Also take a look at Python Google Chart:
http://pygooglechart.slowchop.com/
On Jul 12, 7:36 pm, "Oscar Carlsson" <[EMAIL PROTECTED]> wrote:
> There are a number of different toolkits that could do this for you, here
> are three that looks
> usable:http://code.google.com/apis/chart/http://develop
ing regular operations on them.
It might be possible with other databases too, I don't know.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-
database but will
> act as normal tables when doing regular operations on them.
>
> It might be possible with other databases too, I don't know.
Hi Dan, thanks for the reply.
We are indeed using MySQL, and attemipting to symlink (as the mysql
documentation at
http://dev.mysql.com
use the federated engine for tables
>> that are only "symlinks" to real tables in another database but will
>> act as normal tables when doing regular operations on them.
>>
>> It might be possible with other databases too, I don't know.
> Hi Dan, thanks
Hi There,
It has been possible in the past to use multiple databases with django.
There was a branch for it and about a year ago it was bought up to date with
trunk. However that branch hasn't seen any activity for some time and is
effectively dead. There's now a (low key) effort un
Ben Ford wrote:
> Hi There,
>
> It has been possible in the past to use multiple databases with
> django. There was a branch for it and about a year ago it was bought
> up to date with trunk. However that branch hasn't seen any activity
> for some time and is effectiv
Have a look a this http://code.djangoproject.com/ticket/4747 &
http://trac.woe-beti.de/
On 21 juil, 03:04, CPF_ <[EMAIL PROTECTED]> wrote:
> Ben Ford wrote:
> > Hi There,
>
> > It has been possible in the past to use multiple databases with
> > django. There wa
It won't be in 1.0. It's only really been kicked off recently, so you'll
have to wait a while :-)
2008/7/21 CPF_ <[EMAIL PROTECTED]>:
>
> Ben Ford wrote:
> > Hi There,
> >
> > It has been possible in the past to use multiple databases with
> >
Hi,
I am still learning django and was wondering on the following
question
as to how one would go about doing it in the django framework:
If I have a cron job that dynamically creates new tables that are
spawned out of new entries in a main table. For example Table
'Global'
has a new entry 'A' th
On Mon, 2009-04-06 at 21:22 -0300, Marcello Parra wrote:
> Hello,
>
> I started to play with Django some weeks ago. I'm very impressed with
> it and making some tests with an application I have already running...
>
> The problem is that I need to connect to two database
I would have your internal model how you like for the best application
design and then write cron scripts that import into your main db from
the other disparate format databases. Have a field in your internal
model so you know the original source of each entry. Reimport when the
third party DBs
I'm interested in projects that have used Django with an xml database
such as eXist or Berkeley. I'm aware of one project along those lines
but would like to find out about others.
It is easy to imagine projects that combine data some of which are
more easily stored in XML and some in SQL. If the
On Mon, Feb 1, 2010 at 11:07 PM, Klemens Mantzos
wrote:
> hi list,
>
> checked out the new multidb feature
> (http://docs.djangoproject.com/en/dev/topics/db/multi-db/).
>
> i assumed that syncdb would only sync those models in the database
> when calling allow_syncdb() of the database routers retu
erRouter(object):
"""A router that sets up a simple master/slave configuration"""
...
def allow_syncdb(self, db, model):
"Explicitly put all models on all databases."
return True
any suggestions?
thx for your time,
klemens
On Wed,
@klemens you are most definitely not alone.
I made a router that would allow me to have one database per app and I
get exactly the same type of error on both postgres and sqlite. Doing
syncdb on the default db work as it should but when I in this case do
a ./manage.py syncdb --database=ads I get th
return model._meta.app_label == 'auth'
> elif model._meta.app_label == 'auth':
> return False
> return None
>
>
> class OtherRouter(object):
> """A router that sets up a simple master/slave configuration"""
Hi,
I was wondering whether its possible to have something similar to virtual
private queries/databases via the django ORM?
As in, the Oracle database provides something called VPD by which policies
can be enforced wherein a user sees data only that he is allowed to see. (
http://www.oracle.com
Hello Djangonauts,
I am using django in an application that has multiple distinct
databases, each with unique data (i.e. not master/slave type
configuration). I've created an app (django-admin.py startapp) for
each database and the settings.py defines DATABASE_ROUTERS where I
specify
I am somewhat new to Django and am trying to use the ModelFormSets
alongside multiple-databases.
I'm trying to create an empty ModelFormSet that will allow me to
create objects for a specific database and pull in the appropriate
drop-downs from that database. What I'm seeing is that th
On 8/5/2010 7:53 AM, cootetom wrote:
> Is it better to have one large database with all the data for a web
> site in it or many smaller databases that hold data for specific
> area's of a web site in it?
>
> Thinking that one database with some sort of clustering technol
7:53 AM, cootetom wrote:> Is it better to have one large database
> with all the data for a web
> > site in it or many smaller databases that hold data for specific
> > area's of a web site in it?
>
> > Thinking that one database with some sort of clustering technology
Hi.
Being quite new in django,
I have a task to integrate data from multiple databases.
And I wonder if django-1.2 multibase capabilities can help me in that.
The idea is like that:
class PersonModel(Model):
id = AutoKey(primary_key=True)
system = ForeignKey(SystemUsers, blank
Hello.
I still cannot figure out how to deal with the task:
An entity is represented by several models in different databases.
(for instance - one model tores system logins, another model - phones
and emails, etc)
There are rules to find out related models based on common field.
I'd like to
1 - 100 of 554 matches
Mail list logo