Anonymous
Admin of this group has restrictred me
Anonymous
But when i looked onto datasource there is no table of it
Anonymous
But in migrations it is there
cj
Admin of this group has restrictred me
they must have a reason 🤷🏻‍♂️ I can't do anything against it, if you're not allowed to post pictures, you can't do
Anonymous
Okay
cj
But when i looked onto datasource there is no table of it
you're doing someting wrong, check in settings.py what database you are using
Anonymous
PostgresSql
Anonymous
I have to models one is being created and another is not
cj
and check if it's the same that you are looking in your datasource
Anonymous
I v been doing this a long ago no result
Anonymous
and check if it's the same that you are looking in your datasource
In datasource there is no table of my second model but first model table is yhere
Anonymous
Okay doing
Anonymous
No migrations to apply
Anonymous
My project is onto github can you look there
Anonymous
Sorry application
Anonymous
Brother @CJDP25 what should i do now.
Anonymous
https://github.com/Shubham0257/drf_events
cj
ok wait, I'll take a look
Anonymous
Ill wait
cj
Ill wait
I just run migrate and I have your models create in the database 🤷🏻‍♂️
cj
Sorry application
why don't you upload your whole project? 🤔 maybe you have something configured in the wrong way 🤷🏻‍♂️
Anonymous
Models have no problem, but the second studenttable is not creating
Anonymous
And uploading whole project ill do in a second
cj
Models have no problem, but the second studenttable is not creating
I have the 2 tables created in the database 🤷🏻‍♂️ those are the models
Anonymous
Then Why its is creating problem with me
Anonymous
If you have used my code then there must not be any problem i guess
cj
Then Why its is creating problem with me
as I told you, you may have something bad configured in settings.py or in other part of the project, you only shared tha application 🤷🏻‍♂️
Anonymous
Okay i m doing it
Anonymous
Can i just share the pastebin of settings.py
Anonymous
Here
cj
okay... I'm leaving, I have to work, but you can continue asking, maybe somebody else will help you
Anonymous
https://pastebin.com/E8ta4S48
Anonymous
Hey @CJDP25 your onto my problem just look onto this pasebin for last time
cj
I suggest you share the whole project 🤷🏻‍♂️
Anonymous
Okay doing
Anonymous
Hey @CJDP25 done under new branch please check
Django Bot
>> Links - Django-Rok : Public URL for your local web server – Ankur Jain – Medium - Persistent database connections with async workers on Django >= 1.6 fails · - robinhood/deux: Multifactor Authentication for Django Rest Framework - robinhood/thorn: Easy Webhooks for Python
cj
Hey @CJDP25 done under new branch please check
Sorry but, I was expecting a complete django project ready to use... I mean I can have your project up and runnig for testing by: 1. Clone the project 2. Install requirements [2.1 optional: Configure settings.py] 3. Run migrations 4. Run python manage.py runserver if I can't do that with the files you share, I won't spend my time configuring the whole project.
Anonymous
Okay i got something related error hope this hint helps: Now i removed studenModel and makemigrations done thereafter when migrate it giving studenModel not avaialble. What i think is migrations are not able to register with final step i.e. migrate which is causing the problem
Anonymous
The solution is tp migrations from very scratch
Anonymous
@CJDP25 i got the reason :: By mistake or foolishnes i have delete datasource at once fromthere migarte is not working and keepon repating onto the previous
Anonymous
So there are 2 solutions one from scratch start and another i don't knwo
Anonymous
Waiting fro your reply @CJDP25 and #django_restframework
A⃠r⃠a⃠v⃠i⃠n⃠d⃠
Guys i want basic tuttorial for django operation with databse
A⃠r⃠a⃠v⃠i⃠n⃠d⃠
Like CRUD
Anonymous
Django docs is the key, hit there poll application is waiting there
Anonymous
For you
Django Bot
>> Links - Django 2.1 release notes | Django documentation | Django
Django Bot
>> Links - Python strftime reference
Django Bot
>> Links - Time Zones in Pytz & Django
Piyush
Any one have oauth2 documentation??
Anonymous
Hey People, I have 2 Models named Model1 and Model2. I want a another model named Model3 having 2-2 columns from Model 1 and 2 . How it can be done , if with relations ill be very happy . #django_restframework #django
Anonymous
I have setuped my design on my pad. So No
Anonymous
Can i makeuseof Inheritance here
Anonymous
like a many to many with middle table for relations?
Hey i want to have specific columns of Model irrespective of Relation Type
Jimmies San
Hey i want to have specific columns of Model irrespective of Relation Type
make a ER diagram so we can understand better what you mean [and you understand better yourself :D ]
Anonymous
make a ER diagram so we can understand better what you mean [and you understand better yourself :D ]
Thanks man, i m sorry for not specifying but it is understood to me .
Anonymous
Ill make use of asof now
Jimmies San
Thanks man, i m sorry for not specifying but it is understood to me .
yes but if you want share your idea to get help is better to do it with right tools: erd :)
Jimmies San
because maybe i tell you "look that things" and is not correct
Jimmies San
ERD is a scheme tables with namefield and relations
Jimmies San
you can use sqldisegner or workbench or ponyorm online editor and so on to do that
Anonymous
Doing now
Jimmies San
or a piece of paper and a pen 🤷🏻‍♂️
with pen/paper you can't generate all django models from a erd :D
cj
Thanks man, i m sorry for not specifying but it is understood to me .
it's understood by you, not by the rest of the people you expect to help you
cj
with pen/paper you can't generate all django models from a erd :D
no, but you save a lot of time to clear the idea first, then you can use a software to generate a more elaborated ERD and so on...
Anonymous
Admins have restricted me to share nedia
Anonymous
Media
Anonymous
Sorry can't share the image