No one
Hello. how can I tell to Prettier extension in Vscode to ignore Django tags such as { and {{ ?
Annony-mouse 🐭
Annony-mouse 🐭
No one
mirodil
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?
etherbeing
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
sunshine
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
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
etherbeing
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
etherbeing
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 ?
عبد القيوم
عبد القيوم
Because it is more powerful than bootstrap
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');
Ruchit
sunshine
Is there a way to making a filter (Model.objects.filter) with a QuerySet Model.objects.filter(model_2=Model2.Objects.all()).all()?
Никита
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
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
Umut Deniz
Then use proper way hehe
Umut Deniz
Requriment txt way not work everytime so you need to do it classic way
Shokhzod Samariddinov
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
Of course
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/
Of course
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!!
Doragonsureiyā
Deepu
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
Alex
voiceless
guys brouser dont show my email poll in my register form. another polls is seen
Doragonsureiyā
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
Kunal..
how to solve circular import bw 3 files
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 ?