Anonymous
There's a model with one attribute witch I defined verbose_name and help_text for it I made a form.ModelForm using that model When I translate my code and remder thre form the template shows non translated help text and verbose_name I defined for my model How can I help you the translations?
thanks
Mirco
no needed, get it
Cool 😁 Is working now ?
Cool 😁 Is working now ?
No checked yet 😁
Will let u know
Anonymous
Are you using Django default i18n ?
Yes Even debug page is translated
Mirco
Yes Even debug page is translated
And are you using gettext with your help_text and verbose_name ?
Anonymous
Admin page is translated too I didn't expect that
Mirco
Yes gettext_lazy
And don't you see those fields into your files to translate them ?
Anonymous
And don't you see those fields into your files to translate them ?
I see them I've added translations to po file and compiled it
Anonymous
But they are not translated ?
No In templates that I render the form they are not translated It shows the original texts
Mirco
Share your code , it's better to have a look
Anonymous
My code is messy I don't want to bother I'll work on it and ask again later right now I just added the model to admin site and I don't see translations here either So it's not from modelform I thought misunderstood something about forms
Anonymous
Or maybe it is from forms and admin site is using ModelForm too?
OUHBOY
I need help am getting a error “ SMTP server disconnected Connection unexpectedly closed “
Anonymous
That's not enough information.
OUHBOY
I can’t send the error in my page
mark
its gaining members again haha
George
welcome back, wordpress fans
Bkr11218
Can any one post django daily activities & roles and responsibilities
Yug
Guys what is the best way to preload initial data into your app's sql? Like for example in Liquibase you can migrate your schema changes as well as any initial csv file of the data you want to roll with your app's build
Googlom
or post_migrate signal
Yug
custom management commands
If I Google this will I get sufficient results?
syedj
Why am i getting AnonymousUser when i print request.user
syedj
I have logged in via login method of django.contrib.auth
syedj
Am i making any mistake
Anonymous
Django 2.2 is out
Puranjay
I was trying to import UserCreationForm in my signup...but when I click submit button it always give me an error "the two password fields didn't match"
Puranjay
Did someone also face the same issue?
Puranjay
Yes I am sure that I entered same passowrds in.both the fields..but don't know why this is giving me an error
Adonis
Weird, I would suggest to try again and if problem persist share ur code
Open the console and go to the network tab, fill your form, submit it and select the query to see it containt, you should see both password there
Puranjay
To see the passwords I changes the type from password to text
Akay
If i make a blog on django and the other on WordPress with sane content then which one ia require more hardware and wich one is faster.. also tell me that if my monthly traffic is 30k then how much resources i need in both of the case like ram, cpu , storage or other things
F.
I was wondering, if you created your blog on Django with all the templates and static files, and files that are not 'static', how would something like Django-CMS be able to change the front end of different posts. Aren't all the post supposed to have a relatively uniform template that they build from?
F.
I stumbled on Django CMS quite recently and I want to know if it's worth the research.
F.
start playing with it and you will find answers to your questions
Alright.. Thanks. Guess I'll get to work then
Mirco
Alright.. Thanks. Guess I'll get to work then
💪🏻💪🏻
Anonymous
I run python manage.py migrate i get this error.. Traceback (most recent call last): File "manage.py", line 8, in <module> from django.core.management import execute_from_command_line ImportError: No module named 'django' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "manage.py", line 14, in <module> ) from exc ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment? i use mysql to create my project
Anonymous
create a virtualenv, activate it, install django and run it
I installed virtualenv at very beginning. The project is created in virtualenv
Akay
I installed virtualenv at very beginning. The project is created in virtualenv
Make sure your user is same at the time of creating project and runtime .... Sometime error aris when we make mess with root user or normal user in Linux ...same thing in windows with administrator or working user. So make user your terminal or cmd whatever you use, use with same user
Akay
drop Wordpress one and built your blog on django and django-cms
I think that django CMS is more difficult than django.
Ronald
cause it’s a framework on top of a framework
Ronald
I’m learning Wagtail now for a client project
Akay
Why ? It's always django
Ya but there's no good documentation.... But django have a lot
R
I’m learning Wagtail now for a client project
Also been developing on wagtail recently and quite happy with it
R
If you worried about performance/required server specs you can always use some tool to export the site as static files and host it on s3 + cloudfare for example
https://github.com/datadesk/django-bakery or https://github.com/mgrp/django-distill are tools to export a django site as static content
Mirco
Ya but there's no good documentation.... But django have a lot
That's strange, but I can refer to a core developer
Its
anybody is active i am making a project i really need help i need to submit the project 😰😰😰
Anonymous
Guys, still didn't find the solution, any one faced this before
This issue has been solved by, giving path of the db file in settings.py. Previously i changed database from postgres to sqlite3 but i forgot to give db file path as NAME
Its
i am getting error while creating user form in latest django
Mirco
i am getting error while creating user form in latest django
If you don't share your code or traceback , it will be hard someone chooses to help ya
Its
i am really sorry here it is : https://dpaste.de/MSXt
i would like to pay if anybody can help paytm,phonepe etc
Its
user form not showing
Mirco
user form not showing
Check your urlspattern , you are including signup view not get_name And your signup view is just a TemplateView
Franger Rodolfo