On Saturday, December 8, 2018 at 2:44:21 AM UTC+11, Informatico de
Neurodesarrollo wrote:
>
> Thanks Mike:
>
> My data are in different formats, but I don't care pass it by hand once
> time.
>
Once is enough, I agree.
>
> Previously, I know that I need make migrations my model into "postg
Thanks Mike:
My data are in different formats, but I don't care pass it by hand once
time.
Previously, I know that I need make migrations my model into "postgres"
database creating the hole table but empty
My interest will be learn one way put a previous data into my database,
before going
Jesús
Where is your data right now?
If you can put it into a separate database - or even a spreadsheet - it
can be automatically reloaded at any time.
There are two ways to do this. One is a data migration ...
https://docs.djangoproject.com/en/1.11/ref/migration-operations/#runpython
... an
Saludos Gerson:
Es real, trabajo en salud y estoy trabajando en un sistema para el
control de medicamentos y necesito tener ya en la base de datos las
provincias, sus municipios, áreas de salud, medicamentos controlados,
etc. con los que voy a trabajar y cuando lo termine será puesto es todas
James,
Take a look at this page -
https://docs.djangoproject.com/en/2.1/howto/initial-data/
Be sure to backup your database before you migrate just in case.
Also, sometimes it is faster and easier to just drop the project's database
and restore from a backup than to fiddle with the initial data.
Hola Jesus, la información que requieres cargar inicialmente en la base de
datos es información fake o real?
El martes, 4 de diciembre de 2018, 13:09:04 (UTC-4), Informatico de
Neurodesarrollo escribió:
>
> Hello:
>
> I am a beginner on Django. I wish develop a web app with Django 2.1.3
> and
you can use faker library, for insert dummy data into your model.
On Tue, Dec 4, 2018 at 10:39 PM Informatico de Neurodesarrollo <
infneurodcr@infomed.sld.cu> wrote:
> Hello:
>
> I am a beginner on Django. I wish develop a web app with Django 2.1.3
> and Postgres.
>
> I have to create my proj
Hello:
I am a beginner on Django. I wish develop a web app with Django 2.1.3
and Postgres.
I have to create my project and later, make migrations on my data base,
but I need introduce some data previously into my database like all
provinces and other a lot of information's, which don't want
8 matches
Mail list logo