N3CRO
But it's only good actually when you don't need to upload something there, cuz heroku doesn't serve the media files and static files
N3CRO
Since i have a client basically a small school site it is
N3CRO
Of*
Anonymous
Is there anyone here who can build the same bot for me?
Anonymous
That i had done with one if my project
True you still need to use something like s3.
N3CRO
True you still need to use something like s3.
Bro check dm i am super confused rn
N3CRO
Is heroku good for the production?
Вин Король Саксов
Sandeep
Any one's help for Automatic certificate Generation and validation
Sandeep
which kind of certificate ?
It's just a portal there the user generates the certificates for their companies people certificate and they has to validate their certificate in that portal
N3CRO
Guys
N3CRO
Is heroku good for real time project deployment?
Mirco
Is heroku good for real time project deployment?
if you don't use the free tier, yes
Mirco
It's just a portal there the user generates the certificates for their companies people certificate and they has to validate their certificate in that portal
to give a real use case where you can take some inspiration, for example here u can find how the COVID Green pass is encoded and how to decode with Python https://hackernoon.com/how-to-decode-your-own-eu-vaccination-green-pass-with-a-few-lines-of-python-9v2c37s1 but a simple idea is to use the JWT to encode/decode your certificate data
Prosto
Hello djangers! Im bit confused. I have ongoing project which have DetailVew, and there is a queryset. Im trying to post Modelform for each object in this queryset. Seems everything good, but when form submited in one object, it submited for others. I been tried to pass object id, but without success. May be someone have any recipe?) Thanks in advance!
Margavya
follow this its helpful: https://stackoverflow.com/questions/19189813/setting-django-up-to-use-mysql
I got this! But the point is I am already have some data in my SQLite database and I just want to migrate them all to MySQL
игорь/igor
Karthick
I want to creat login application in that I want use username as phone number and password as opt to login
Axmadullo🦁
Who can help me with Form Models
игорь/igor
Who can help me with Form Models
Just ask your question.
Артём
Guys, hello everyone! I am new to django and recently decided to practice. Let me tell you briefly: I need to make a page with a form and a block at the bottom. In this form, you can enter a link and also its abbreviation. And in this lower block, a link with text (link shortening) will be displayed, and it will also lead to the url address, which is indicated in. I have already created a table where all links will be stored, and also brought out a data entry form. Would like to know how to normally pass data to a template? Do I need to use ListView,
игорь/igor
Guys, hello everyone! I am new to django and recently decided to practice. Let me tell you briefly: I need to make a page with a form and a block at the bottom. In this form, you can enter a link and also its abbreviation. And in this lower block, a link with text (link shortening) will be displayed, and it will also lead to the url address, which is indicated in. I have already created a table where all links will be stored, and also brought out a data entry form. Would like to know how to normally pass data to a template? Do I need to use ListView,
You can start with function based views, they are usually easier to understand for newbies. The task though - you want to have the Form for creation of shortened link and and the result itself at the same time? Try to make 2 different pages(thus 2 different views) - one for creation with form, the other is a detail view with result of that creation. Just as an advice for a newbie.
Артём
yes, I wanted to do that, but I have a layout showing how the site should look like. There it is done exactly like this, but I need to repeat
Артём
I should have 1 page
Артём
My problem is that I am unable to pass two objects to the template
Артём
when I tried to do it through the ListView, the form stopped displaying correctly
игорь/igor
My problem is that I am unable to pass two objects to the template
Use function based views, they are easier. Pass all to context, as many variables as you want
игорь/igor
context = {'link' : blahblah, 'form' : blahblah}
Артём
Okay, now I'll try if I write anything
VISHNU
What is the best way and also not paid api ,to get timezone with respect to user in django.eg by the logged in time need to get the timezone like that...
игорь/igor
What is the best way and also not paid api ,to get timezone with respect to user in django.eg by the logged in time need to get the timezone like that...
Not sure what you mean, but my guess is that you need to use front-end to know user's timezone, because how do you know person's timezone without access to their browser? That being said, just create a view or an endpoint to which you gonna send timezone info from browser, and in the template create a Javascript script for extracting timezone. No need for extra api.
Артём
Help me, pls:) https://pastebin.com/qjTqJpNt
Артём
Links are not displayed, although they are in the database
Артём
but links are not shown
Артём
Unfortunately, i cannot share the picture
Артём
there aren't any links in the block
Manish
https://stackoverflow.com/questions/68682472/api-endpoint-for-django-group-model-generating-excess-number-of-queries?noredirect=1#comment121379147_68682472
Артём
it's*
Kaushal
hey, I have been creating a website for courses and I wanted to display the trending courses on the frontpage I don't have an idea on how to imple that, how do I get to know if a course is trending or not
Saikat
hi there. please let me know the issue. why the code can't separated by "," my_df=pd.DataFrame(my_df) my_df.to_csv("RAW_DATA.csv", sep = ',')
HRITIK
https://pastebin.com/10FEmpdv
HRITIK
Plz somebody help It is showing no image found error
♈
Anyone have book pdf of "django for professionals" ?
Anonymous
But I have purchase it
Anonymous
I can give you if you want
Sha
Anyone here to help me on a simple question. I need to add multiple field choices in django.models for charfield for subjects. eg output : subjects = physics, chemistry, maths how can i do it.. please help me.
Tanu
how to hide password in form api
♈
How to call table save data on ajax call in depdent dropdownlist select?
N3CRO
Guys can anyone help me out with django site hosting on heroku?
N3CRO
🙂😂idk i have hosted 2 sites already on it but this one made me sucked around
Anonymous
Guys can anyone help me out with django site hosting on heroku?
not a django specific problem, try googling it.
N3CRO
It is
Anonymous
well then what exactly is the problem?
N3CRO
Problem with static thing
Anonymous
can't help you without logs or exact problem ¯\_(ツ)_/¯
N3CRO
Well dude i can show you the code its on github
N3CRO
Error h10
игорь/igor
Links are not displayed, although they are in the database
I think you should not redirect to 'login', just omit that return line after saving a new link. Also remove the else bit and put form = blabla just after data =blabla line.
игорь/igor
there aren't any links in the block
Also, because you created extra dictionary data, to access your links you need to do for ref in data['data']
Артём
then the error appears
игорь/igor
then the error appears
Just remove that extra 'data' dictionary, that's redundant. data = blabla.objects.all()
Артём
Ok, at this stage the text appeared
Артём
Everything works
Артём
Thanks
игорь/igor
Nice
_karimoff_1904
hi my friends i have a problem can you helpme
_karimoff_1904
raise NoReverseMatch(msg) django.urls.exceptions.NoReverseMatch: Reverse for 'Darslar' not found. 'Darslar' is not a valid view function or pattern name. [07/Aug/2021 03:08:56] "GET / HTTP/1.1" 500 156561
_karimoff_1904
i have a this kind of problem