Federico
Show the code
Literally these 4 lines: from django.contrib.auth.models import AbstractBaseUser, AbstractUser from django.db import models class GymUser(AbstractUser): gym_name = models.CharField(max_length=64, null=True, blank=True)
...
MyApp -> MyApp -> models.py
Do you have init.py in your directory of your app?
Federico
What about AUTH_USER_MODEL?
AUTH_USER_MODEL = 'GymApp.GymUser' At the end of settings.py ( GymApp is the app name )
...
Have you added your app to your apps dictionary in settings.py?
Muflone
Is GymApp in your enabled apps?
Muflone
Have you cleared your db?
Federico
INSTALLED_APPS = [ ... # APPS 'GymApp', 'bullettinboard', # 'mealplans', # 'reservations', # 'workout', ]
...
Thats right
Federico
Have you cleared your db?
Yes i've directly deleted it
Federico
Thats right
I'm not getting it 😭
Federico
It creates no migration folder in my main folder
...
I'm not getting it 😭
Yes that's odd😩
Muflone
It seems correct There must be some path wrong in your setup. Share the project somewhere
Muflone
No thanks
TBSITS
As a beginner in Django, what book can I read to make me more productive please
Doragonsureiyā
As a beginner in Django, what book can I read to make me more productive please
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Mitsubishi
What is not working?
- I don’t understand how to make 1 form mandatory - Validation run 2 times https://linkode.org/#R9o9ua9NTHaom9LBoDDph2
Federico
Is Django common in work enviroments?
Ravikumar
how to do Dynamic Dual List Box with manytomany feild
IRFAN
I am flutter developer..........I want switch another......Is django or node js .... Which one get job faster
mehrab
I am flutter developer..........I want switch another......Is django or node js .... Which one get job faster
Django is perfect for backend development and you would love it But also knowing js is an essential for her every developers
Ромко
What is the best way to create responsive lending website ?
x-yro
Hello, which image should I choose for docker to run celery and redis?Will the Ubuntu image work? I am using Windows 10
Doragonsureiyā
Hello, which image should I choose for docker to run celery and redis?Will the Ubuntu image work? I am using Windows 10
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.
mehrab
What is the best way to create responsive lending website ?
Use ui kits and libraries such as bs4 or html-uikit and etc Make sure you are using grid utilities of your ui library so you can create responsive page very easy
Doragonsureiyā
This question is related to Django
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so move to @PythonOfftopic group and ask there.
mehrab
Hello, which image should I choose for docker to run celery and redis?Will the Ubuntu image work? I am using Windows 10
There is no officially image for celery You should just using python as base image and write Dockerfile for it
Abel
Guys how can i connect my front end port to my backend port using MERN
Noura
Hello everyone I have a problem I received an audio file to view It is working But when l try to upload it or save it in api It is uploaded as local link or path When l click on it l got error However, when l try to upload it via admin The url saved not locally because l created media root folder
Noura
How can l fix the problem
ROG 💻
Hello everyone, from an already functional project that I have in Django + Postgres for good practices, how can I access an Oracle DB that my client owns and make queries and return as JsonResponse in my app? The idea is to use ODBC
The Inspired
Guys how can i connect my front end port to my backend port using MERN
Your React app would be running on a port, say 5173. Your express would be running on another port, say 8000. You have to make api calls to localhost:8000 from your frontend. That's how you "connect" your frontend to backend. Also you have to configure CORS so that your frontend is actually able to make the request
The Inspired
https://docs.djangoproject.com/en/4.2/ref/databases/#oracle-notes
ROG 💻
Change Postgres to Oracle DB? pretty sure django has driver for oracle sql also
In this case, I have already made the connection to postgres, and the app is already in production, but now what I need is to make a connection to Oracle and make queries to the DB to
cj
you can have connections to many databases without problems
ROG 💻
you want good practices, but you want to use ODBC ... what a big contradiction ¯\_(ツ)_/¯
In that case, would I have to create some API to be able to consume Oracle views? Can't I just connect to query Oracle data if I have to touch the entire already working Django project?
ROG 💻
I didn't understand anything that you wrote
What I need is to consult data from an Oracle DB, I do not need to do migrations or anything, it is only to execute queries to be able to show it in a django app which is all on Postrgres DB
Sea
How to configure django channels on production
Charly
https://channels.readthedocs.io/en/stable/deploying.html
بلال
Does someone know how to implement this multi step form. The form should be that the next question is based on the answer before https://www.drinktrade.com/subscription-signup
mehrab
Does someone know how to implement this multi step form. The form should be that the next question is based on the answer before https://www.drinktrade.com/subscription-signup
I did it before You should have a method like get_next_question on your form model and load the next question based on your answer Also you should have a dynamic url pattern which contains the id of the question and redirect user to next question using that method until your form get finished
hmmmmmm
Guys, I have included "django.middleware.locale.LocaleMiddleware" and it should do a redirect to locale, which is defined in the request headers and everything works locally. nginx gunicorn does not work on the combat machine, what could be the matter? that is, when I go to the site address I catch a 500 error, and if I manually enter /ru/ into the yurl, then everything is fine if you enabled debug true, then everything is fine apparently it is necessary to dig in nginx, I don’t understand where
حمید
Hello friends How can I display the even days of the week of a period of time, for example a month, along with the date of that day
Haha
Hello all I am a beginner but I try to import include function but it's not defined
Haha
I have an image of the problem but I can't send it here 😭
Doragonsureiyā
I have an image of the problem but I can't send it here 😭
Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://linkode.org, https://nekobin.com (or your favorite one)
Muflone
this is not fun
Muflone
you have to show the code, not the images
Haha
Ok
Haha
I will write it
Haha
from django.urls import path, include But include function it's not defined and I can't use it
Muflone
show the exact error
Shear
Hello guys, how do I hide a html tag on base.html from other.html, ie I want to hide a div tag that is on base.html from about.html
Muflone
Hello guys, how do I hide a html tag on base.html from other.html, ie I want to hide a div tag that is on base.html from about.html
Surround the tag to hide with a block tag and in other.html define the same block as empty
Toor7
Hello guys I build micro-service using django and apollo federation as gateway, what is the best way to implement authentication??
Shefali
Difference between remember me and cokkies
Doragonsureiyā
Shefali
Cookies in session management
Kene
Hello, which image should I choose for docker to run celery and redis?Will the Ubuntu image work? I am using Windows 10
Just use a python base image and in your yaml file, you create services for celery with the execution commands