noneofurfuckinbusiness
Use pastebin to share ur view of that url
Sumit
noneofurfuckinbusiness
True, when u put debug false, there can be error in template rendering
noneofurfuckinbusiness
Recheck ur settings file and base urls file
noneofurfuckinbusiness
Rup
I did it
Rup
noneofurfuckinbusiness
It shows this
Do u have pycache and migrations folder in app right now
Rup
Nope. Only have pycache now after makemigrations.
noneofurfuckinbusiness
When deleting migrations, delete contents in migrations folder except init.py
noneofurfuckinbusiness
Create a migrations folder, add init.py to make it package
noneofurfuckinbusiness
noneofurfuckinbusiness
Django couldn't find ur migrations folder and is assuming that no changes to be applied
noneofurfuckinbusiness
Init.py file should be named with two underscores before and after init
Rup
Okay
Rup
All table created. Issues solved. Thanks a lot surya. Thank you so much
Sumit
Sumit
The error was in static_file__root
Sumit
I have written this.
STATIC_URL = '/static/'
if DEBUG:
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'static')
]
else:
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
MEDIA_URL = '/media/'
noneofurfuckinbusiness
noneofurfuckinbusiness
No need of if else statement
Sumit
You mean STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static')
noneofurfuckinbusiness
Replace the if else statement with just the code in else statement
noneofurfuckinbusiness
noneofurfuckinbusiness
noneofurfuckinbusiness
No need of static files dir.
Sumit
John
Hey guys, I have a problem, I have a boolean field set to false as default in all objects, now I wanna make all True even if the boolean field if true/false in Django views can
John
And update it in the models
John
I know its silly but I have Been trying this for an hr now
John
My main doubt I how do I check if every object in the boolean field is true
Eyakub
John
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Sumit
Peppe
What?
Abdla.
Hi,
I'm confused about "ALLOWED_HOSTS" in the settings.py
if I wanna access a api through mobile app
should its value set to "*" ?
noneofurfuckinbusiness
M
Mirco
A list of strings representing the host/domain names that this Django site can serve.
This is the official explanation, clear enough
Abdla.
🙏
T I T T U
Tittu:
Hello bro
I'm facing error social media integration using google login in django
Anyone knows social media Integration, clicking google login render to your website
Mirco
Mirco
obvs you have to configure an application for OAuth2 inside Google dashboard
T I T T U
I do all things
T I T T U
Okay
Mirco
T I T T U
I can't send pic of error
T I T T U
Social media Integration using google login is not working properly
T I T T U
When I clicking google icon it's occur errror
T I T T U
Doesn't exist at /accounts/google/login/
SocialApp matching query doesn't exist
T I T T U
Doragonsureiyā
I can't send pic of error
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
web
Hello..
How I do share - share page by whatsapp - using django ?
Can I get a detail tutorial or website link explain that for beginners ?
T I T T U
SNIR
Usama
Hi everyone can some help to how can start development custom payment using django?
cj
Usama
MJ
Please can anyone tell me? how to implement one to one video call in django app?
MJ
Sai
Alessandro
Hi, What is the easiest method to import CSV data to django using the ORM? Thank you
Есбол
Si
hi
I used crispy forms but it doesn't show red box when I make an error ..why?
cj
if you want that book then you should buy it
Anonymous
How do I turn on traceback?
Anonymous
I still dont understand correctly the workflow of celery - redis - postgresql , but I did an example of this simple crawling process in order to understand it in a better way , but #response means what I got stored in redis database from tasks https://github.com/SkyBulk/celery/blob/main/project/orders/tasks.py . what does exactly redis store as a message broker, and what it goes to postgresql?
in this examples people use AMQP ,and redis or AMQP and postgresql, etc
https://github.com/celery/celery/blob/master/examples/django/proj/settings.py#L10-L15
https://github.com/Parisson/TimeSide/blob/master/app/settings.py#L241-L244
https://github.com/MacroConnections/DIVE-backend/blob/master/config.py#L83-L84
Christof
yes.. we just said
Immortal
Did anyone implement face recognition ?
noneofurfuckinbusiness
Src should be <img src="/media/{{product.img_main}}" class="img-fluid rounded" alt="">