......
change the url of jquery to be https
thank you very very very very very very very very very very very very very very very very very very very very much bro
ShuvamTheBeast
I am creating an application which will have two types of users Student and teacher should i create different apps for both of them or should i make them in same app? I need data from teacherApp in studentApp
Happy to Help
Can anyone suggest some course for django??
Doragonsureiyā
Can anyone suggest some course for django??
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Y
Hello guys Please someone's can you give me the Google search API documentation or link? I want to integrate it in my django project but I don't find during my research
Y
Can anyone suggest some course for django??
Yoo can also check openclassroom but the different courses are in French. May be there possible to convert it's in French
Y
You can*
Lobster
There any pentest tool for django
Suleman
Can any body plead help me in sending goDaddy emails with django. I have tried most of methods but still get error Connection Closed. Can body guide me about this.
Y
Can any one help me to make search whith Google search engine on my django project?
Y
Please
Doragonsureiyā
Can any one help me to make search whith Google search engine on my django project?
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
Y
I want to make search bar on my project. If the user want to make researching, he can tap directly in search bar but I would like to link with Google for research results
Y
So Google permit to get results for user research on my site
Y
https://pypi.org/project/django-googlesearch/ I found this link but isn't work after integrating
Doragonsureiyā
If you need help, don't just say "not working", explain in detail what's not working the way you expect it to
Mirco
How ?
Put CSS inside template and not as external file
etherbeing
Can anyone suggest some course for django??
I recommend you the official documentation of django and read the framework code and some open source code on github... like a lab program your own Web with localization site maps and so on... for testing is your Web meets the minimum requirement you can use google search console and fix your errors over there... test no warnings or errors are in browser console or in terminal console etc...
etherbeing
Put CSS inside template and not as external file
🙄 Well seems like my English is horrible because I'm not able to explain what I am trying to accomplish 😕 ... I am working in a django feature; having css and js along with the template is not optimal for large projects ... make the code ugly as hell, and may decrease the page rendering, using a cache database may help a little but if you want to maintain that project you'll probably have to search in a project with more than 500 lines of code... if for example the template cache expires all dynamic css is reloaded again in the other hand if css were outside of the template's code then if template cache expire the browser cache still have the css so the only thing needed is to re render the template ..
etherbeing
Anyway if no one knows about how to currently do that in django, let's ask then in the mailing list... thanks anyway for the answers 😁
etherbeing
Yeah that's why I told u, the solution is weird But there's no other solutions right now, I mean you cannot use context vars in CSS It will never be possible
Well I have a way 😅 ... so is not so impossible, just change the definition of those css and js from static to something more appropriate like dynamics 😆
Mirco
You'd like to use a feature like that ?
Honestly ? For a solo project maybe For a larger one with teams, I prefer developing APIs and not reling anymore on Django templates for UI Unless the team decides to use htmx and similar
Mirco
🥲 that's true too 😅 so it must be compatible with react and vue for people that will be using it 😅
Yeah but most teams use totally decoupled projects So it can be a solution for who decides to use the hybrid way and inject react / vue in templates
etherbeing
Mirco
Thanks for telling me that 😊 by the way what do you do when you have to dynamically translate text in your projects ?
just using i18n both frontend / backend side If project is big, Transifex is helping a lot
etherbeing
Mirco
😅 but your clients can change contents of the page no?
Yup, they can choose the language they prefer
Mirco
😑 what does that package do? 🥲
Django has i18n middleware built-in and it works nice and django-modeltranslation for models For react I don't remember right now the package name
etherbeing
I mean non statics text... a text that a user can change like the description of the website... for example imagine the user set in the admin site a text like: " hello world" previously you didn't know what text the user could set... what you do then to translate that text to let's say Spanish... ("you don't have that translation in locales folders cause you didn't expect it")
etherbeing
You have to write all translations manually in that package?
Mirco
You have to write all translations manually in that package?
basically you will have in db as many fields as languages are so you can just add the translated version per language
Mirco
but for sure I'm forgetting something so have a look at the doc
Mirco
better info than my memories
etherbeing
I mean ... in the admin site it asks you for Spanish, deutsch and other translation before translating... well anyway it seems to me like that package doesn't do what mines does 🙃 later I will upload to my github account the translation package i made along with Google translator ... let's you change translation but speed ups the translation process a lot with the help of Google..
Mirco
Mirco
btw so far I found it perfect for my job project used by millions of users and never had translations issues
etherbeing
https://github.com/n4b3ts3/ if you like any repo there let me knows if you can help me with pip configuration let me knows 😅
Mirco
🤔 ... well then it has auto translations 😭
you can specify also manually the translated version that package is very flexible, never found a scenario where it could not fit my needs
etherbeing
which pip config ?
Any of my djanto repos xD... but django ... I think the src is wrong..
Mirco
Any of my djanto repos xD... but django ... I think the src is wrong..
https://github.com/adamchainz/django-linear-migrations this is a perfect structure
etherbeing
Why use setup.cfg and setup.py ?
Mediakaf
Hey Devs! I'm a Python Django beginner, suggest me where to go about.
Shivam
Google map api in django
Doragonsureiyā
Google map api in django
What is this word salad supposed to mean?
Shivam
How to integrated google map in django
Pranjal
I want little help in my django project.. anyone please help me?
Doragonsureiyā
Anonymous
How we can embed video in our template without uploading it in our admin panel?
Mirco
How we can embed video in our template without uploading it in our admin panel?
You can just put the link of the video, if it's public
Anonymous
Anonymous
Like can we upload video first to some cloud and then use it?
Mirco
Like can we upload video first to some cloud and then use it?
Yes, you have to use the link of that cloud provider
Shêwylúnàtic
Hello, I have been trying to deploy django project on heroku but everytime I got an error templateDoesNotExist . I have read many documentation but my problem is still not solved. Any solutions?
Brutus
i'm making a chained dropdown using ajax, on selecting value in first one, value in second gets selected automatically(this is done). now with the second dropdown value i want to get option for third dropdown here is the problem
Ak
Hello everyone, can anyone send me study material for ORM ?
Anonymous
iam new to django can anyone help me with my questions
Anonymous
Hii..can anyone let me know how to encrypt a model.field..the encrypted ones should be saved in the db..we should be able to decrypt it later for using in other functionalities