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
python3 -m venv your_virtual_env_name
Rodrigo
how can i add anchor tag id to a {% url %} tag?
{% url 'your_url' anchor_tag.id %}
Raj
One more issue
Raj
How to upgrade python version inside vertual environment
Raj
It's by default 2.7
Uday
{% url 'your_url' anchor_tag.id %}
I did something like {% url 'home' %}#anchorid
Uday
And this seems to work properly
Raj
During deploying Django project live.. version doesn't match with my project
Rodrigo
How to upgrade python version inside vertual environment
I don't think you can upgrade it once you created it. You need to delete your env and create a new one
cj
During deploying Django project live.. version doesn't match with my project
use a requirements file, I recommend you to take a look on pip-tools https://github.com/jazzband/pip-tools/
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 !
âshîsh
maybe you have some add-on blocking cookies
Yea, that's exactly I was guessing.
âshîsh
But didn't sure about that. Will sort it of
cj
But didn't sure about that. Will sort it of
then go and check it ¯\_(ツ)_/¯
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
​ def filter_by_order(self, queryset, event_type, value): return queryset.filter(your_field=value)
Mirco
if it's not hard for you, can you show me the example?
it's obvs you can put whatever u need into the filter
Droll55
Oh, it was so easy -.-. Now i understood, Thanks a lot for your help!
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?
𒂵𒐊𒍝𒊏
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?
Khumoyun
Try chown
thank you bro 👍
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
How to connect Django rest framework and django_neomodell?
https://neomodel.readthedocs.io/en/latest/getting_started.html#connecting
Sadra
During deploying Django project live.. version doesn't match with my project
Which version? If you're having trouble with git stuff, you better check the logs and make some PRs maybe.
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
Anyone knows why model.object returns id ? Name and name_id both same
Check out for type(). That id is probably the thing that __str__ method returns from Model.model.
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
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.
enansi
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.
You can just have regular user model with a status field. Then you can track status CREATED -> UNVERIFIED -> VERIFIED in another model that links to your KYC process
^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
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!?
😇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 %}
𒂵𒐊𒍝𒊏
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?
Arezoo
how?
Arezoo
with real time app?
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'