Hikmet
Allright, i will search somewhere else))
cj
you're losing time here... go and debug your code in both sides, back-end and front-end... you code won't magically be fixed here
Anonymous
getting unexpected indentation error here: STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), ] STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles") STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
Esthieuk
I'm having problem with dynamic url routing in django . can anyone please help me out with this ?
𒂵𒐊𒍝𒊏
any one know the type of admin models?
𒂵𒐊𒍝𒊏
what do you mean?
admin custumization
Charly
admin custumization
you'll need to be more specific
𒂵𒐊𒍝𒊏
you'll need to be more specific
i need to change the form the admin of django
Enigma
anyone knows how to take and save user ip address?
𒂵𒐊𒍝𒊏
wite me some seconds
Karan
anyone knows how to take and save user ip address?
R = request.META Ip_address=(R.get('HTTP_X_FORWARDED_FOR','') or R.get('REMOTE_ADDR','')).split(',')[0]
Pranav
Hello everybody! I want to know how to create view for check mail opt and entered input field otp is same then verify equal to true
im
I can import PostAdmin from django cms_blog admin to my admin.py to edit its fields?
Anonymous
@Farantgh
Anonymous
I can send you dm, it won't let me attach images here? pls
Anonymous
someone help me?
Charly
someone help me?
help with what?
Anonymous
help with what?
heroku tells me that my site in django is deployed but it does not work
Charly
heroku tells me that my site in django is deployed but it does not work
you'll need to give more details, show your Procfile, logs and describe what do you mean wit "does not work"
Anonymous
heroku tells me that my site in django is deployed but it does not work
Ok, The site I want to deploy is the arch linux site (https://github.com/archlinux), I uploaded it and it tells me that it is deployed but the site does not work, the url is: https: // kryztal-packages-final .herokuapp.com / and the my repository is github.com/kryztalarch/packages-website, my build log is: https://paste.ubuntu.com/p/d9tkrjFTWC/
Anonymous
Help Me?...
Anonymous
if session file is new
Anonymous
if session file is new
this is for me?
Anonymous
as far as I know, you need to have a Procfile to define how your app should sart, I don't see it in the repo
as far as I know, you need to have a Procfile to define how your app should sart, I don't see it in the repo?
Anonymous
If you are going to do that, I'm done
Sorry I tried to forward it to someone
Anonymous
If you are going to do that, I'm done
And do you know how to create the file?
Charly
oops
Charly
And do you know how to create the file?
You need to read the heroku docs: https://devcenter.heroku.com/articles/deploying-python https://devcenter.heroku.com/articles/django-app-configuration
Anonymous
Add what it said https://devcenter.heroku.com/articles/django-app-configuration and now it gives me deploy heroku error @Carlangueitor
Anonymous
In the code of website?
Charly
In the code of website?
No idea, you didn't show the error
Anonymous
No idea, you didn't show the error
the error is here: https://paste.ubuntu.com/p/j4Pg3SYXXG/
Charly
the error is here: https://paste.ubuntu.com/p/j4Pg3SYXXG/
you didn't set up a BASE_DIR in the settings
Anonymous
say what "NameError: name 'os' is not defined" but import it into settings.py https://github.com/KryztalTe4m/Packages-Website/blob/master/settings.py @Carlangueitor
Anonymous
Oki
Charly
and now @Carlangueitor?
need to see the full error
Anonymous
Ok wait
Anonymous
https://paste.ubuntu.com/p/TzFgN67h3S/
Charly
https://paste.ubuntu.com/p/TzFgN67h3S/
you didin't imported os
Nirupam
Hi .. i want to delete old records in db like 2 days old in djnago using auto scheduling.which approach i can use?? Suggestion will be appreciated
Anonymous
@Carlangueitor Maybe she tells me that I already deplore her but it doesn't work :(
Charly
@Carlangueitor Maybe she tells me that I already deplore her but it doesn't work :(
I don't know who's she, but the code show no import of os but path from os
Anonymous
I made an import
Isn't that enough?
Charly
Isn't that enough?
you imported a module froom os not the whole os module
Charly
if you deon't know python first, then seems a good Idea to start withdjango
Anonymous
I know but I have to make that site work
Anonymous
Then i will learn
Ayobami
I don't use os in my projects, I import path from pathlib. It's in django 3.x by default in settings.py. So use path to locate your templates or static dir
Ayobami
str(BASE_DIR.joinpath('templates')) is an example instead of os
Sodaney
Hello guys. I have been trying to learn Django through a YouTube beginner course and tried to build a to-do app but I still feel like I don't know about Django. Could you guys provide me a road map and advice to be an expert in Django? Or is any Django project practice recommended? Thank you so much
Charly
U help me?
import os
Anonymous
Charly
How
Just type import os on top of file
Anonymous
Just type import os on top of file
Same on heroku deployed but does not work
Charly
Same on heroku deployed but does not work
At this point you should have learned to put the error so we can try to se what's missing
.
Hi everyone, I was kinda wondering what projects I could make with React and Django. I already made a facebook clone earlier and an E-commerce store (but that was just with Django). Can y'all give me some ideas for an intermediate project? Thanks in advance! <3 (:
.
A little help would be appreciated
Dima
How I can get all cards related to board? https://paste.ofcode.org/Gk4SXu6QXBpUwkGmc3AhVm
faran
How I can get all cards related to board? https://paste.ofcode.org/Gk4SXu6QXBpUwkGmc3AhVm
first set a related_name in your model related foreignkey field: then: board = Board.objects.get(id=board_id) board.<related_name>.all()
Anonymous
Tell me best Django book
faran
Tell me best Django book
Django 3 By Example: Build powerful and reliable Python web applications from scratch, 3rd Edition
Xudoyberdi
Tell me best Django book
Django documentation from it's Official web site