Alex
Hello guys I am building a blog website using django. I have already configured everything except the logic of how the content will be posted so as to be viewed on the web. Any help please
But what is exactly your problem? Create an html form with method=post and the route to view y, serve it by a view x and process post requests by the view y.
игорь/igor
Guys can anyone get me rid out of my django hosting issue on heroku?
Is psycopg2 in your requirements.txt and actually are all of packages that you use in requirements? If not then pip freeze > requirements.txt and git push again
Tonnie
or otherwise create a single view for both - template rendering and post-requests handling.
I am using a front end blog template. My only task is to configure the backend.I have configured everything except how I will be posting my blogs to viewers to see
Anonymous
check out this messaging app i made: https://github.com/MuhammadSalahAli/TolkProject
игорь/igor
I am using a front end blog template. My only task is to configure the backend.I have configured everything except how I will be posting my blogs to viewers to see
It depends. If admin only is able to post blogs, then just do it from admin part. If you plan to allow users do it, then it is gonna take you a week or maybe more. Learn Crud, it's Django-way of managing things, then add auth and other stuff.
игорь/igor
Tonnie
You have to spend some time then
I want other users to be able to register and also login then post in their own accounts
Tonnie
You have to spend some time then
Do you have any case or reference example or video solving my problem you can refer to me please
N3CRO
Psycopg binary
N3CRO
I can share you the code in dm if you wouldn't mind
игорь/igor
I can share you the code in dm if you wouldn't mind
I still don't have access to my computer, can't really help. Sorry. Can't think of anything I had similar to your error now.
N3CRO
Oh
N3CRO
Np bro its all my badluck :(
Christof
not related to contacts !
N3CRO
Can i past the log here? Don't think i m spammers
N3CRO
Its very long, I can't sent as its not allowed for that long error log
игорь/igor
secret_key not found
N3CRO
secret_key not found
Basically its not running any python code bro
N3CRO
Not only that :(
игорь/igor
Joseph
http://dooma.herokuapp.com/ This is an api I created though its not the real work but just part of what I built for someone and wanted to show you guys. Which I named it anything you can check it out I used swagger as the interface for describing the restful api
Maset
Is there any way to reduce video quality before upload, like creating a thumbnail from image?
Rahkmanuly
Hello there!
Rahkmanuly
Does anyone tried to build django based document constructor? 1) Like web representation of docx document with the fields? 2) Which user need to feel out and download ready-made document?
Enigma
hey im trying to return a foreign key as str in my model but while im trying to add a new one it gives me __str__ returned non-string (type int)
Enigma
my model : invoice_number = models.ForeignKey(Report, on_delete=models.CASCADE)
Enigma
def __str__(self): return self.invoice_number
Enigma
also i tried : def __str__(self): return self.invoice_number or '' and def __str__(self): return str(self.invoice_number) and def __str__(self): return self.invoice_number.id
5P34R
invoice_number is a foreignkey and when u return that value u need to specify which field in report model to be returned for example def str(self): return str(self.invoice_number.id) here the invoice_number.id referce the id of Report model
5P34R
If im wrong pls correct me also☺️
Shoxrux
HI guys. In my project, firstly user scan qr code after then they should get pdf preview. How to render pdf preview in django template. I would be glad if someone shares useful link or a piece of code
Arvind G
Guys iam a final year engineering student I would like to know if Django is good decision to learn in terms of My Carrer, Jobs
Arslan
Yes
5P34R
same error :(
still no output?? are u sure remaining all are correct
5P34R
and Report model have field id and some data exist on that?
Enigma
still no output?? are u sure remaining all are correct
yes , when i delete the forginkey one , it will work fine
Anonymous
Sorry guys i have a question I cearte a user field foreignkey and i used model form for other fields to send data to my model; but i wont get user id from form i want send current user id with (request.user) to model with my model form i have. How can i do this ? Tnx for your help.
Barkhayot
Hello
Barkhayot
guys I am trying to learn Django channels and web sockets for django to build chat application with Django
Barkhayot
can u advice me best tutorial adn practices for me please
Arslan
Django channels documentation
Tonnie
Hello, do we push django code to GitHub while still in virtual environment or do I need to break out of it first?
Tonnie
mention your env in gitignore
So I should not break out?
Sreekanth
How to movebthe project from local host to live pls tell me the process..
Anonymous
Hi... I want to learn Django with in depth from basic to advanced anyone suggest me to learn with practically through online (free courses like that)
S
You can learn from basic
Anonymous
I learned python... Want Django to learn
S
I learned python... Want Django to learn
Then above channel's meets ur requirement
Anonymous
Thank u
S
Always happy to help
Tanu
ModuleNotFoundError: No module named 'jet' how can solve this
Swapnil
any one please send login screen with redirect on dashboard
Tanu
ok
Dev
plz answer
pip install django-jet
Tanu
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
shila
Anyone help
shila
In django
Mirco
Doragonsureiyā
Anyone help
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
Mahdi
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
You to google basic stuff Like config mysql with django
Dd
i am trying to run my project on pythonanywhere but getting following error is there any way to change port on python anywhere Watching for file changes with StatReloader Performing system checks... System check identified no issues (0 silenced). August 09, 2021 - 14:32:52 Django version 2.2.24, using settings 'mysite.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Error: That port is already in use.
Dd
The 8000 is busy
yeah i tried to kill it
Dd
still it gives same error