Re: Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
NVM i read loaddata documentation

Le vendredi 9 décembre 2016 19:49:50 UTC-5, Sylvain Dégué a écrit :
>
> Thanks guy!!But how do I reload the my previous data to the new database 
> if the model changed??
>
> Le vendredi 9 décembre 2016 13:39:50 UTC-5, Sylvain Dégué a écrit :
>>
>> Im about to lauch a project that uses django for the api. So im only 
>> using the admin side for now. Ive been having problem concerning the 
>> database and forms.
>> Ive made many mistake while updating the database, when certain field 
>> didnt allow null. It caused IntegrityError, which I was able to fix
>>
>> SO im thinking about reset completly my production database and remove 
>> all the migrations to start fresh. I dont have much data in the production 
>> database so its probably the best time.
>>
>>
>> Is there any drawback to flushing the database and removing the 
>> migrations files 
>>
>

-- 
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...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/41d52cbe-abbb-4e39-8d2c-14331178449c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
Thanks guy!!But how do I reload the my previous data to the new database if 
the model changed??

Le vendredi 9 décembre 2016 13:39:50 UTC-5, Sylvain Dégué a écrit :
>
> Im about to lauch a project that uses django for the api. So im only using 
> the admin side for now. Ive been having problem concerning the database and 
> forms.
> Ive made many mistake while updating the database, when certain field 
> didnt allow null. It caused IntegrityError, which I was able to fix
>
> SO im thinking about reset completly my production database and remove all 
> the migrations to start fresh. I dont have much data in the production 
> database so its probably the best time.
>
>
> Is there any drawback to flushing the database and removing the migrations 
> files 
>

-- 
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...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5fcc9af4-f9b6-44e9-9121-01f81c8f73c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
Im about to lauch a project that uses django for the api. So im only using 
the admin side for now. Ive been having problem concerning the database and 
forms.
Ive made many mistake while updating the database, when certain field 
didnt allow null. It caused IntegrityError, which I was able to fix

SO im thinking about reset completly my production database and remove all 
the migrations to start fresh. I dont have much data in the production 
database so its probably the best time.


Is there any drawback to flushing the database and removing the migrations 
files 

-- 
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...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bff6a050-8a28-48f4-abf2-57f17c3c8a04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: cant start a new project ,just installed django

2016-10-03 Thread Sylvain Dégué
What Django & python version do you have?

Le lundi 3 octobre 2016 19:07:03 UTC-4, new user a écrit :
>
> followed the intro:
> https://docs.djangoproject.com/en/1.10/intro/tutorial01/
>
> when i run django-admin startproject mysite
>
> its prompt : "manage.py already exists, overlaying a project or app into 
> an existing directory won't replace conflicting files" not matter what name 
> i give to the project , its creating new dir wit the project name , and 
> manage.py and this error. google didnt helped me and i saw someone 
> complained it a bug. windows 10 
>
>
>
> anyone?
>

-- 
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...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bf033d8f-0e19-4020-bd77-51c1ae85f44d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Composite pattern for models

2016-10-03 Thread Sylvain Dégué
Hi, 

I was wondering if it was possible to apply the Composite Pattern 
 in the models. If yes, 
how?

-- 
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...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4589b47b-7aa2-4778-b5a7-f6857b2ea21e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django Rest Framework inside of Django Project

2016-08-26 Thread Sylvain Dégué
Hi,

I am building a mobile application and I need a Rest API and a web version 
of my app. So I was wondering if I could make a website with Django Rest 
Framework or if I have create a Django project for my website and a Django 
Rest Framwork for my API

-- 
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...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8cea6e27-d16f-4225-84c7-944b0963eabe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.