noneofurfuckinbusiness
Use pastebin to share ur view of that url
Sumit
Write a try except statement for every line in view of that url with some message in print(), find out which line is causing error
If there should be any error then it must be reflected in debug mode, that's the purpose of debug mode, isn't that?
noneofurfuckinbusiness
True, when u put debug false, there can be error in template rendering
noneofurfuckinbusiness
Recheck ur settings file and base urls file
Rup
I did it
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
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
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
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
Replace the if else statement with just the code in else statement
It will work in both development and production
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
My main doubt I how do I check if every object in the boolean field is true
Have you tried model.objects.all().Update(field=true)
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
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 "*" ?
Mirco
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 "*" ?
nope, with the mobile app you don't have to specify nothing inside ALLOWED_HOSTS you should put only your domain or wildcard for subdomains https://docs.djangoproject.com/en/3.2/ref/settings/#allowed-hosts
noneofurfuckinbusiness
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 "*" ?
Allowed hosts as name suggests is which server has permission to host ur code, not who can access the website, that is decided in views
M
Allowed hosts as name suggests is which server has permission to host ur code, not who can access the website, that is decided in views
I think document says otherwise , allowed host setting define from which all addresses urls can be accessed
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
obvs you have to configure an application for OAuth2 inside Google dashboard
T I T T U
I do all things
Mirco
I do all things
don't write in PM
T I T T U
Okay
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
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.
Mirco
Doesn't exist at /accounts/google/login/ SocialApp matching query doesn't exist
https://stackoverflow.com/questions/15409366/django-socialapp-matching-query-does-not-exist check the last answer
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 ?
SNIR
If you want to insist on python , then you can use kivy
how kiby can help me ? thay have pwa ?
Usama
Hi everyone can some help to how can start development custom payment using django?
Usama
start by: django-admin startproject your_project_name
is there any package for custom payment integration?
cj
is there any package for custom payment integration?
that's your task to search about them, but yes, there are many
MJ
Please can anyone tell me? how to implement one to one video call in django app?
Doragonsureiyā
Please can anyone tell me? how to implement one to one video call in django app?
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Sai
Please can anyone tell me? how to implement one to one video call in django app?
https://github.com/aseem-hegshetye/Video_call_and_chat_in_Django
Alessandro
Hi, What is the easiest method to import CSV data to django using the ORM? Thank you
Doragonsureiyā
Hi, What is the easiest method to import CSV data to django using the ORM? Thank you
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Есбол
Hi, What is the easiest method to import CSV data to django using the ORM? Thank you
hi you can covert your csv to dictionary, after by using (python manage.py shell) shell create objects
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?
cj
How do I turn on traceback?
write bad code that crashes
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="">