Raj
Mkvirtualenv -- python==/user/bin/python3
Raj
Then shows
Raj
You must provide a DEST_DIR
Raj
What does it means
Uday
how can i add anchor tag id to a {% url %} tag?
Uday
which is on different template
Rodrigo
Rodrigo
python3 -m venv your_virtual_env_name
Rodrigo
Raj
Raj
One more issue
Raj
How to upgrade python version inside vertual environment
Raj
It's by default 2.7
Uday
And this seems to work properly
Uday
Raj
During deploying Django project live.. version doesn't match with my project
cj
How to upgrade python version inside vertual environment
you don't upgrade Python versions inside virtual environments... you create virtual environments with the Python version you need to use, go read about: https://github.com/pyenv/pyenv with that you can install many Python versions to work on with
âshîsh
I think there is problem with fitefox when sessions Django used.
Because in chrome my project working fine, but in firefox, session data is missing !
cj
âshîsh
âshîsh
But didn't sure about that.
Will sort it of
cj
cj
register the models in the admin.site first
Droll55
Hi. I want to ask how can i filter by django-filter using ChoiceFilter. Here is my filters.py example: https://dpaste.org/aG5V. What should i do in method? User should choose category and it should display all events in this category. Thanks!
Mirco
Droll55
Mirco
def filter_by_order(self, queryset, event_type, value):
return queryset.filter(your_field=value)
Droll55
Oh, it was so easy -.-. Now i understood, Thanks a lot for your help!
Doragonsureiyā
Mr.
Ok
M.
Hi. I'm getting this error while waking migrations: django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server at \'reading authorization packet\', system error: 0 "Internal error/check (Not system error)"')
How can I solve it?
Doragonsureiyā
Ghost
M.
𒂵𒐊𒍝𒊏
I have a page and
The css files are not loaded when uploading them and load static. I have linked the static to my pages
Note that I registered on setttings and it worked
Required
Then it worked
python manage.py collects
But there is a bug because the html page does not work perfectly
Khumoyun
Hello, I created Django project and deployed to linux server
My project has image upload
but I can't upload it, I got error Permission error
Who knows give access to linux folder?
Mrgl
Mrgl
Also use chmod if you wish to change permissions and not the owner
Majid
How to connect Django rest framework and django_neomodell?
Sadra
Sadra
Sadra
There might be some conflicts though.
Sadra
How to upgrade python version inside vertual environment
I would never recommend this one. In any situation, whenever and wherever you install the python interpreter, you need to update/reinstall the packages. You can keep up with a new virtual environment which will be created with a -p flag which shows the version that you prefer to use in your rest of project.
Although there would be no conflicts with the opposite approach, you may like a cleaner way to do that. :)
Sadra
That might be much cleaner if you do it like this:
repr(your_object)
im
Hello, please tell me how from django cms blog to display the name of the categories in the template, namely in the label input radio? example: https://dpaste.org/fowj
Anonymous
somebody using DRF, if you're already using class ClassSerializer(serializers.Serializer): , is there any use to create models as well ? I mean you can put enoguh information as well in here.
Sadra
Sadra
They act like both filters and converters.
Rakesh
Unbound local error
Local variable ,name, referenced before assignment
Prakash
Anyone here who has some industry experience in django
Aneesh
In django docker postgres . When I connect it with postgres iam getting password authentication failed . Is there any one experienced same issue?
S_8634
I am updating a record in table...the text is updating...but image is not updating there...can anyone helps me with that... Thank you....
矢田
Trying to dockerise Django, having problems... with postgresql.... anybody help me with a yml file plis postgresql
Akash
I am making a web app which will require user to complete KYC verification before being able to use my app.
How should I design my database.
^o^
I have deployed the Django webapp in azure using Azure App Service using the git repo connection. I would like to connect to the azure SQL database. I have made the changes in settings.py. My doubt is how/where to run makemigration command to create the database table. Please help
Anonymous
Am new in Django,where can I start learning djsngo
Xudoyberdi
Anonymous
𒂵𒐊𒍝𒊏
I created an html page and put javascript and css in the static file, after that I did the required in the settings for the project and then put load static in the pages and linked static to the links inside each page ... but when the server is running, the page does not work perfectly as things are not arranged as What is needed to do? Any Help!?
Alejandro
😇ANGELO™️🎧
Create a static variable in the settings.py file. And label it as static.
Make sure to direct your OS or base directory to it.
Finally load the static as the first thing on every page you intend to use it. This should be the first line of code
Eg { % load static %}
😇ANGELO™️🎧
𒂵𒐊𒍝𒊏
Arezoo
hi how can i perform ticketing system in django...when person send ticket ...is it possible same time manager see alaram in django panel?
âshîsh
Arezoo
how?
Arezoo
with real time app?
âshîsh
Arezoo
👍👍
Akash
Does any Python package exist that displays the dependency of files in codebase.
Like A->B (A imports B)
Charan
I'll be pleased to hear a solution for below error:
AttributeError at /patient/register
'RegisterPatientView' object has no attribute 'object'
Request Method: GET
Request URL: http://127.0.0.1:8000/patient/register
Django Version: 2.2
Exception Type: AttributeError
Exception Value:
'RegisterPatientView' object has no attribute 'object'