No one
Hello. how can I tell to Prettier extension in Vscode to ignore Django tags such as { and {{ ?
Kenechi
I'm not good with js that's why
Well you have to learn a bit about it, it will make your development much easier
Umut Deniz
Hello guys i have a problem when i do {% load static %} my <!DOCTYPE html> gives an error which named as unexpected tokens how can i solve it?
Umut Deniz
In the bakend
Umut Deniz
When i am trying to reach static CSS files, i need write an Load static code but when write that my html file gives an error
sunshine
What is Django restframwork in Token refresh Default expiration time ?
If the refresh token is expired you must to do login again
sunshine
How can I create custom formset in django admin inlines?
sunshine
I need to do formset for nested django admin inlines
Annony-mouse 🐭
Soussi
I need to know how I can send form
Soussi
Through html to my db
S
Through html to my db
Within the help of Model.py and View.py files
Anton
Hello. I have a problem. I made a translation for my application. But my translation is not a priority. I have my own translation for the "Home" text, but django used the translation it used in admin. How to solve it?
etherbeing
Also please if you can upload the error message as django displayed to you
sunshine
Through html to my db
You could create a url to call a view. This view will handle with form data and save to db. In your form, you put the url in "action" attribute
Zakx
When I create user in admin panel it's not working in front end ...anyone have idea how can I create ,when I create its not authenticate
No one
Hello. İn your opinion Bootstrap is good or react ?
Doragonsureiyā
Hello. İn your opinion Bootstrap is good or react ?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
عبد القيوم
Because it is more powerful than bootstrap
Tanner
Hello. İn your opinion Bootstrap is good or react ?
Those are totally different things. Bootstrap should be compared to Ant Design or something, not an SPA framework
Dark Angel
Hello. İn your opinion Bootstrap is good or react ?
React can do more validations and adjustment in front-end while Bootstrap is just design.
Venkatesh Akhouri
I have a question, i am creating ba personal portfolio site using django I have a section called projects which a a small summary about it and GitHub link. Now i want whenever I upload a project on GitHub, portfolio website should automatically pick that up Any idea how can I achieve this
Muhammed emin
How do I add csrf tokens to cookies in Django
Mirco
Ruchit
How do I add csrf tokens to cookies in Django
function getCookie(name) { let cookieValue = null; if (document.cookie && document.cookie !== '') { const cookies = document.cookie.split(';'); for (let i = 0; i < cookies.length; i++) { const cookie = cookies[i].trim(); // Does this cookie string begin with the name we want? if (cookie.substring(0, name.length + 1) === (name + '=')) { cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); break; } } } return cookieValue; } const csrftoken = getCookie('csrftoken');
sunshine
Is there a way to making a filter (Model.objects.filter) with a QuerySet Model.objects.filter(model_2=Model2.Objects.all()).all()?
salar
Is there a way to making a filter (Model.objects.filter) with a QuerySet Model.objects.filter(model_2=Model2.Objects.all()).all()?
you have a foreign key of Model2 in your Model table and want to have all objects of Model table which have not null model2 relation in them right?
Никита
Hi, I have validator on charfield in my model with validators=[RegexValidator(regex='[a-f0-9]’)]). I need to pass through my field only letters from a to f and digits from 0 to 9. For now, this validator doesn’t work. What do you think why? I have checked this regexp in regexp sandbox( https://regex101.com/r/aGn8QC/2 ), and there it’s works as expected.
Jordane9999
Morning evrybody please help to know how include css and javascript in django propely
Chandra
Hello guys how to integrate the django app with bluehost?
Maxim
Hello guys how to integrate the django app with bluehost?
by reading Django deploying docs and bluehost docs
Mozart
Hello guys, i'm trying to use the loginmixin but, the "next"(to redirect) isn't work. Allwyas return to LOGIN_REDIRECT_URL in settings.py Here my custom mixin class LoginRequiredCustomMixin(LoginRequiredMixin): login_url = reverse_lazy('contas:login_custom') Here is the view who required mixin. class DashboardView(LoginRequiredCustomMixin, TemplateView): template_name = "sistema/dashboard.html" Here my login view class LoginCustomView(LoginView): template_name = 'login.html'
Shokhzod Samariddinov
Hello! when I install requirements.txt file with pip install -r requirements.txt i get error ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. how to fix it!
voiceless
Hi How to expire otp or password after a certain time in django??
voiceless
Please help me
Umut Deniz
Then use proper way hehe
Shokhzod Samariddinov
Are you tring to download django?
yeah bro if I download with pip install django it works well
Umut Deniz
Requriment txt way not work everytime so you need to do it classic way
Umut Deniz
I didn't do too much bro i hope ur project will have no bugs
Of course
Hello , I install in my project pipenv install djano-crispy-forms==1.9.2 and I run py manage.py runserver occur this error and I can't find its solution anywhere {OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\Users\\V I S I O N\\Desktop\\news\\<frozen importlib._bootstrap>'}
Georgiy
Maybe you can add r in the beginning of your path. filepath = r'C:\Test\file\file-input-thecodebuzz.txt' • Use ‘r’ before any path- The r  is a string literal that it let treat any string as a raw string, which means all escape codes will be ignored. Source: https://www.thecodebuzz.com/python-windows-error-123-filename-directory-name-syntax-is-incorrect/
Jorge
Hi, I'm looking for some advice. I need to export a pdf from a dinamic HTML, I have some charts and context in the HTML, I have tried with weasyprint but the CSS doesn't work properly. Someone know some library or something that can help me? Thank you!!
Deepu
watch this youtube tutorial
Nilesh
I will
voiceless
Hi How to expire otp or password after a certain time in django??
voiceless
Please help me
Ganush
I need one help..how to create multi use login authentication position.example hr and employment api keys
Ganush
Plzx
Alex
Hi How to expire otp or password after a certain time in django??
In settings PASSWORD_RESET_TIMEOUT=value(seconds)
guys brouser dont show my email poll in my register form. another polls is seen
Doragonsureiyā
guys brouser dont show my email poll in my register form. another polls is seen
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Frozen
Can anyone help me when i type the password it's showing the characters we type.. but i don't want to show password with characters in Django Rest Frame Work
cj
Can anyone help me when i type the password it's showing the characters we type.. but i don't want to show password with characters in Django Rest Frame Work
if you're using DRF, then your issue is not related to DRF at all ¯\_(ツ)_/¯ you should know how to use password input in your frontend page ¯\_(ツ)_/¯
Kunal..
how to solve circular import bw 3 files
Maxim
how to solve circular import bw 3 files
1. this question is not specific to Django 2. there is no short answer to this question
Anonymous
how to solve circular import bw 3 files
https://www.alpharithms.com/django-circular-imports-153910/
Denis
hi, how can I try to log-in with apple account to django-allauth ? I do not have any apple account and I need to test functionality I found some tests here but it is not obvious how to apply it https://github.com/pennersr/django-allauth/blob/master/allauth/socialaccount/providers/apple/tests.py#L120
Denis
I need to mock up OAuth2 and use hardcoded values as account
Mirco
r u testing your login view ?