Dutchq
Siddharth
Siddharth
if any file didn't add then add it manually
Dutchq
after doing that I get server error 500 when I try to open the site. from pythonanywhere even from my local host
Meshack
You can zip the file then upload
Nithin
Which method is used to retrieve the forms data
Nithin
The data has been uploaded but how to retrieve?
Bilal
please how can i solve this problem ?
Building wheel for cffi (pyproject.toml) did not run successfully.
│ exit code: 1
Anonymous
阿德
So, I am trying to host a django website on hostinger , how to do it ? and is it good way ?
Maxim
Dutchq
Good evening here please, I have a problem
I used template tags in my HTML but nothing shows up on my website, like I use the tags to display the fields created from my database but it's just empty nothing shows just the header.
Doragonsureiyā
🎉🅹🅰️🅻🅾️🅻🅸🅳🅳🅸🅽🎉
Siddharth
Dutchq
Dutchq
Siddharth
https://dpaste.org/8cepp
See you wrote this :
{% for post in posts %}
but in Views you rendered :
{'post':posts}
so correct it and write:
{% for i in post %}
<article>
<time>published:{{i.published_date}} </time>
<h2><a href="">{{ i.title}}</a></h2>
<p>{{i.text|linebreaksbr}}</p>
</article>
{% endfor %}
Siddharth
You have to access post not posts in your template as you renamed your dict
Siddharth
or simply you can go either way and change the views to look like:
return render(request,'blog/post_list.html',{'posts':posts})
Siddharth
now with the old template it will give correct result
Dutchq
Siddharth
Siddharth
Dutchq
Dutchq
Dutchq
Di
Hello everyone, I need help, prayers, wishes for success, or whatever is possible, hehehe. I have a project that was written with Python 2.7 and Django 1.6.
Does anyone here have a Docker image with Python 2.7?
I created a development environment and installed all the necessary packages. However, when I tried to use python2 manage.py runserver, I started receiving the message (Is it on sys.path? Is there an import error in the settings file?): No module named objects. I'm not sure where to go from this point.
Siddharth
Di
hehehe
Siddharth
hehehe
Is there any reason for using very old versions
Di
legacy project, maintenance needed
Dutchq
Siddharth
I need models.py not views
Siddharth
Siddharth
{'post':posts}
don't reder this use this :
{'posts':posts}
Sai
Any one has any django real time projects?
Doragonsureiyā
Any one has any django real time projects?
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. If you don't know what that means, read Asking Smart Questions.
Siddharth
Dutchq
Dutchq
Siddharth
Maxim
Dutchq
sen me link
https://github.com/bonsuAyuk/my_first_blog
Siddharth
Siddharth
i got your issue lemme send you a image in dm
Siddharth
https://github.com/bonsuAyuk/my_first_blog
actually u didn't have existing data present in your database so you should insert some data first through shell, admin or make interface to insert data then it will be visible to you
Dutchq
Dutchq
Dutchq
Thanks very much
Jqffgjhxxjkkj
Hello guys, how would I work with data from two databases for crud operations. Postgresql for user feeds and comments and Mariadb for user profile, users table etc.
Siddharth
Lalit
I have done static_url=cloudfront link
Now django administrator page css is not loading
How to resolve this?
HARILAL
Try collect static command
https://docs.djangoproject.com/en/5.0/ref/contrib/staticfiles/#top
Lalit
I have done static_url='static', and media_url= cloudfront link
And passing the media url through context.
And using it like <img src='{{media_url}}media/img.png'>
By doing this taking more time to reload
Lalit
Cloudfront link has only media. How can I do without including on static
Tg
how to solve this error/AUTH_USER_MODEL refers to model 'directory.CustomUser' that has not been installed
.
Igor
Hello,
We are currently struggling with a strange problem of running migrations in the gitlab-ci to create a test database
The project has approximately 1000-1500 migrations. Everything runs well until the command "migrate" finishes execution and we proceed to the next command of the pipeline
When this happens, the tables magically disappear from the database
Is there any hidden behaviour of the "migrate" that can cause this situation? Does Django drop tables when some conditions are met after the command execution, or is this impossible?
Igor
Please, also note, that the tables are really being created
We connected to the database where the command should create the tables, and it actually shows us their presence during the execution
Are there any environmental variables that should be taken into the account, project-specific settings, or something else, that might be not so well documented and cause the issue?
Dinesh
Igor
Most probably this was the reason for the migrations not to be created, though it also looks like we've exceeded some Django default limits with naming of classes, fields, or whatever else
The exception, unfortunately, does not give any hints on the reasons behind it
DeathLikeSilence
hello everyone
how can I create multiple user to authenticate
In my project I have company, employees, and manager
So for login I want to use JWT or Token for authenticate