Fabian
Trans is for short things
Fabian
Blocktrans for large blocks of text
Fabian
And blocktrans accept variables
Shaun
Hi there - What is this syntax in the settings.py for LOGIN_REDIRECT_URL .. LOGIN_REDIRECT_URL = "users:redirect"
Shaun
I dont' understand the users:redirect thing. What does that colon syntax resolve to?
Shaun
Came from cookiecutter.
Anonymous
Anonymous
If you go to users/urls.py and search for "redirect" you will probably find it
Shaun
Yup got it.
Shaun
I couldn't tell the difference between users.redirect and users:redirect
Anonymous
But in cookie cutter context, it just tells django where to redirect after login
Anonymous
https://docs.djangoproject.com/en/3.0/topics/http/urls/#reverse-resolution-of-urls
Shaun
Bueno Thank you @markthedev
Jesus
Any ideas of how could I interact with my Django app using a Chrome extension? E.g. log in, and after that user can add some data using the chrome extension into the Django webapp
Maz
Any ideas of how could I interact with my Django app using a Chrome extension? E.g. log in, and after that user can add some data using the chrome extension into the Django webapp
In terms of privacy though, you would be seriously fucking up your users. 😬😬 Google has been so aggressive recently in collecting user data via Chrome.
Jesus
so the main functionality is to get data from other webpages, scenario: user wants to save some text for further reading, so user can select that text and saved using this extension, its similar to what pocket does
Jesus
at the moment, what I do is in a very dirty way, i save the user name and csrf_token in a javascript localStorage and use ajax
Jesus
but I wanted to know if there is a more clean and proper way of achieving this
Raad
I'm trying to build a restaurant management system and and using microservices approach. Each service will have its own database and they might be on different hosts too. Is it possible to use Django admin to manage multiple services or app?
cj
if you're gonna use one host to serve multiple apps/services/sites, then yes
cj
Even if I'm using different databases?
yes, you can use multiple databases on even different hosts, but the django project has to be running on one host
cj
read about multi-tenant sites with Django
Raad
yes
Buy if this is the case, I'm not gonna get the full benefits of microservices which is allows me to splet my app in small pieces that runs in different machines to Increase the performance
Cesar
is it valid to talk about drf here? 👀
Ram
Hello I am unable to login using django default loginview
Ram
It says incorrect username or password
Gourav
Hii I want to create foreign key relation between two database tables
Gil
Hii I want to create foreign key relation between two database tables
https://www.fullstackpython.com/django-db-models-foreignkey-examples.html
Anvesh
I need a help with middlewares. I want to write a middleware in which if response has status code 502 then it should again make the same request from this middleware itself. How to do that. If i am trying to return the request object from the process_response method of the middleware. It is not working
vincent
Hi guys, I'm having trouble loading static files. It says "Not Found" while the directory it's looking for is correct. I'm using Ubuntu, could this be the problem?
Anonymous
Class skills_list(model.models) Skill_1 = models.charfield(max_length=20) Skill_2 = models.charfield(max_length=20) View.py Skill = skill_list.object.all() Template {{Skill.skill_1}} Erroes:Display nothing I try using for loop error object is not iterable Please what am I doing wrong
Altaf
How i can scale my django app on heroku hobby dyno?
Sweetie
How can I use fonts on fly? I have a pillow app that generate image with text. I am trying to let users choose the font they want. Is there some easy way to do this? Right now my repo has 100 fonts and users can only use the one mentioned so they have to open list copy available font name and enter in form. I am looking for a way to let them use any font name from say Google fonts and I get the font just in time and cache it for sometime
Jesus
make a proper API
Using Django REST Framework?
Dhruva
How Can I test 404 locally
Dhruva
Debug =False gives me 505 error
Anonymous
hi why am i getting this : 'il8n' is not a registered tag library. Must be one of: account admin_list admin_modify admin_urls cache crispy_forms_field crispy_forms_filters crispy_forms_tags crispy_forms_utils i18n l10n log static tz
Prajwal
How to install pip in windows
Anonymous
Anonymous
And open cmd , go to download folder
Anonymous
And type python get-pip.py
Anonymous
https://github.com/pypa/pipfile.git
Prajwal
Ssl is not available
Anonymous
You have to download pip file from python docs
Anonymous
Available at python docs site
Prajwal
Ok
Adonis
i've wrote an article about that in the past : https://blog.usejournal.com/building-a-saas-application-with-django-web-framework-part-1-2-the-principe-2f0730a6693f
Fabian
hi, how is the best way to set diferent enviroments for settings in django? (like dev, prod, test etc)
cj
do u have that book? can u send me?
yes I have the book, but no, I can't send it to you, you have to buy it yourself
Fabian
yes I have the book, but no, I can't send it to you, you have to buy it yourself
lol sorry, im from venezuela, and thats kinda hard right now, because we have exchange control policies, we dont have free access to USD as other countries, but thank u anyways!
cj
it's not that expensive, USD$19.99
cj
do u have that book? can u send me?
here, another resource, old but still gold: https://simpleisbetterthancomplex.com/tips/2017/07/03/django-tip-20-working-with-multiple-settings-modules.html
Adonis
hi, how is the best way to set diferent enviroments for settings in django? (like dev, prod, test etc)
You can also check those one: https://djangostars.com/blog/configuring-django-settings-best-practices/ https://apptension.com/blog/2017/11/09/django-settings-for-multiple-environments/
Its me
can anyone give me project ideas on django (lab mini project)please?
Naveen
Hi everyone, I have been in the community for a while and helped lots of people with their projects. I want to participate in Django GSOC this summer. If anyone has prior experience of this or is a mentor, Can you please guide me and show the first step so that i can proceed. Hoping for help from seniors. Cheers, Naveen Arora
Julio
Hi people, I have a question. How I can populate data by a foreign key in Django admin?
Naynesh
Dual database and separate model how to handle the create and read API
Naynesh
How to migrate the database
Naynesh
Separate database