Mujahed Saleem
yup, since using multiples domain with single application is in most cases meaning less. why you don't create multiple servers ?
Ogundare
yup, since using multiples domain with single application is in most cases meaning less. why you don't create multiple servers ?
Multiple subdomains you mean? Take for example, school management system, where you want users to switch between Primary and secondary school. It will be one domain with multiple subdomains.
Mujahed Saleem
in these situations we go to micro services
Ogundare
in these situations we go to micro services
Okay thanks, I will go and learn about that. Any material to help?
Dipanshu Vora
I am getting an error as Key(Created_by id)=(0) is not present in the table "account _customertable". While doing migrate i am getting this
Saad Mohammed
How to deploy a django project with database
Piyush
How to deploy a django project with database
Deploy it on pythonanywhere so that you are able to do realtime changes
Saad Mohammed
Deploy it on pythonanywhere so that you are able to do realtime changes
But it showing something went wrong while trying to load this website, please try again later. If it is your site, you should check your logs to determine what the problem is
Saad Mohammed
As a student, i don't know more about that. Where to find my logs
Artyom
Samrah
Hi has anyone worked with Django rest framework while creating database for products with attributes like size and color?
Samrah
I have some questions regarding querying the database and then sending serialized data
Neo
just ask em
Abhie
How can I create a custom field in django to store arrays
Abhie
Without postgres arrayfield
Samrah
Can I send a stackoverflow link to the question? I posted it there as well
Samrah
https://stackoverflow.com/questions/74077211/how-to-retrieve-all-variants-of-a-single-product-in-a-single-json-object-per-pro
Samrah
It's kind of long that's why I am hesitating to send it here
Samrah
Please guide me into the right direction
Samrah
https://stackoverflow.com/questions/74077211/how-to-retrieve-all-variants-of-a-single-product-in-a-single-json-object-per-pro
Also is it a good idea to have a variations table like that? Which stores foreign keys to colors, sizes and images?
Samrah
Does anybody know what the issue is?
Anonymous
Does anybody know what the issue is?
Ok you want everything in group
ON
Does anybody face the error "How to Fix Repository Errors While Running apt update "? how to fix this problem on windows?
Doragonsureiyā
Does anybody face the error "How to Fix Repository Errors While Running apt update "? how to fix this problem on windows?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
capt. Levi
Anybody know how to use cookies and session in django
Binary
Login function from django.contrib.auth login a user and creates a session
Binary
or u can manually do using request.session
capt. Levi
Same as a flask?
fateme
Is there a person who use cookie based authentication with drf jwt system ?
Doragonsureiyā
Is there a person who use cookie based authentication with drf jwt system ?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z!" Just ask directly! The better you are at explaining the problem, the more likely you are to get help. Asking smart questions
Swati
column users_invite.created_by_id does not exist
Anonymous
Then migrate Remember flush remove all database
Swati
yeah
Honey
Can any one please help me with django
Doragonsureiyā
Can any one please help me with django
Not until you explain your difficulties.
Ritwik
Does the virtual environment get automatically installed if I use Pycharm?
Nfl
Hello everyone. It is possible to use next js+django?
Ogundare
https://github.com/jazzband/django-hosts
God bless you for this. Thanks🙏🙏🙏🙏
JHIN
I have a problem in deploying a website in heroku
JHIN
What should be the setting in settings for statics ?
Pythonero
I have a problem in deploying a website in heroku
No PM. U must type your questions here.
JHIN
No PM. U must type your questions here.
Bro I have to show u the settings.py file
Pythonero
Bro I have to show u the settings.py file
Use pastebin or similar. And share it here.
Richa
I Need some help
Maxim
I Need some help
ask your specific question HERE
Holla
i was trying to load json file from my views i should work fine but i get this error this is the code trying to load -> booksData = open('\Users\Axmed-Badal\Desktop\Django-udemy-and-others\bitfumes-django\books.json').read() data = json.loads(booksData)
Holla
i get this wead error booksData = open('\Users\Axmed-Badal\Desktop\Django-udemy-and-others\bitfumes-django\books.json').read() ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 0-1: truncated \UXXXXXXXX escape
Holla
any one ever loaded json file
Holla
fixed it should be /// instead of \\ was thinking of all time
Adrian
fixed it should be /// instead of \\ was thinking of all time
Hi, maybe you should add the parameter encoding UTF-8 in the open function, after the file's path
Adrian
https://stackoverflow.com/questions/491921/unicode-utf-8-reading-and-writing-to-files-in-python
Adrian
In this post there is an example
Ritwik
Try and tell
nice reply 😁, thanks. Yeah, it gets automatically installed along with Pycharm
Oxytocin
How can I have a model that the user wil be able to add text fields while using that model in app?
Adrian
So you want to create a dynamic model??
Adrian
If yes, you should look that post https://github.com/dobarkod/django-dynamic-model
Samrah
If we have a many to many table say product_img like the following how can we query it to know the images each product has? Prod_img P_ID IMG_ID 1 2 1 3 1 4 2 3 2 4
Adrian
You can use the name of the field to access to the related records
Samrah
How? Can you please give an example
Adrian
If the field's name is product_images, you can access with instance.product_images
Samrah
Suppose these are the tables: product: P_ID PRODUCTNAME 1 shoe1 2 shoe2 Images IMG_ID images 2 img1 3 img 2 4 img3
Samrah
If the field's name is product_images, you can access with instance.product_images
But the tables are like what I have just sent and Prod_img is the many to many table generated automatically in the DB
Adrian
If you have these tables, you need a third table product_images, that hava two columns product_id and image_id.
Samrah
When I do migrate