You will have to create a database on your system first (it is better to use mysql instead of sqlite) and then run commands :-
1. python manage.py makemigrations 2. python manage.py migrate Also you will have to create forms (forms.ModelForm or forms.Forms) for taking input. On Fri, 17 Aug 2018, 21:26 Mikko Meronen, <[email protected]> wrote: > Hi, > > I'm quite new with django and python and I wish someone could help me. > > I'm building a webpage where my python program/bot collects data from > webpages. > > Is there a way that I can use my python program to store the data to > django's database? > > At the moment when I run my program, I collect the data to separate sqlite > database, but I don't know how to collect/connect it to django's sqlite > database (or models). > > - Mikko > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > 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/CAGD0jjLbzK1XVVSUTD4Z66p_RUoK0pBW%2BrEYtVM_HwAd9d%3DwvQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAGD0jjLbzK1XVVSUTD4Z66p_RUoK0pBW%2BrEYtVM_HwAd9d%3DwvQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To post to this group, send email to [email protected]. 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/CAC3mK7dgX__66cbM53OZF%3DSYCHfVQRTe9ghDWWD_4h5cesOgCQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

