mukul
Ajmal
Best resource for advancing in django
Ajmal
Any suggestion
Sherlock
whats the best django udemy course ? 🙏🙏
Pandit
Thara
I'm getting errors like
E:Wive & Tharand\Thharand worksbot Project>cd main part
E: Vive & Tharand\Thharand worksbot Project main partspython manage.py runserver
Traceback (most recent call last): File "manage.py", line 11, in main
from django.core.management import execute from command line
File "C:\Users\ENTIN\AppData\Local\Programs Python Python37\lib\site-packages\django\core management init__.py", line 14, in codule> File "C:\Users\T\AppData\Local\Programs Python Python37\lib\site-packages\django\confinit p, line 14, in codule>
from django.conf import settings
from pathlib Import Path
ModuleNotFoundError: No module named 'pathlib
The above exception was the direct cause of the follading exception:
Traceback (most recent call last): File "nage.py", line 22, in ondule>
main()
File "manage.py", line 17, in main
) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHCIPATH environt variable? Did you forget to activa te a virtual environment?
Thara
What does it mean 😟
Shivam
Plz tell me How to calculations in django query??
Dev
I'm getting errors like
E:Wive & Tharand\Thharand worksbot Project>cd main part
E: Vive & Tharand\Thharand worksbot Project main partspython manage.py runserver
Traceback (most recent call last): File "manage.py", line 11, in main
from django.core.management import execute from command line
File "C:\Users\ENTIN\AppData\Local\Programs Python Python37\lib\site-packages\django\core management init__.py", line 14, in codule> File "C:\Users\T\AppData\Local\Programs Python Python37\lib\site-packages\django\confinit p, line 14, in codule>
from django.conf import settings
from pathlib Import Path
ModuleNotFoundError: No module named 'pathlib
The above exception was the direct cause of the follading exception:
Traceback (most recent call last): File "nage.py", line 22, in ondule>
main()
File "manage.py", line 17, in main
) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHCIPATH environt variable? Did you forget to activa te a virtual environment?
Install Django
Ray of Hope
I'm getting errors like
E:Wive & Tharand\Thharand worksbot Project>cd main part
E: Vive & Tharand\Thharand worksbot Project main partspython manage.py runserver
Traceback (most recent call last): File "manage.py", line 11, in main
from django.core.management import execute from command line
File "C:\Users\ENTIN\AppData\Local\Programs Python Python37\lib\site-packages\django\core management init__.py", line 14, in codule> File "C:\Users\T\AppData\Local\Programs Python Python37\lib\site-packages\django\confinit p, line 14, in codule>
from django.conf import settings
from pathlib Import Path
ModuleNotFoundError: No module named 'pathlib
The above exception was the direct cause of the follading exception:
Traceback (most recent call last): File "nage.py", line 22, in ondule>
main()
File "manage.py", line 17, in main
) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHCIPATH environt variable? Did you forget to activa te a virtual environment?
pip install pathlib
Ray of Hope
Alikhanov Jakhongir
I'm getting errors like
E:Wive & Tharand\Thharand worksbot Project>cd main part
E: Vive & Tharand\Thharand worksbot Project main partspython manage.py runserver
Traceback (most recent call last): File "manage.py", line 11, in main
from django.core.management import execute from command line
File "C:\Users\ENTIN\AppData\Local\Programs Python Python37\lib\site-packages\django\core management init__.py", line 14, in codule> File "C:\Users\T\AppData\Local\Programs Python Python37\lib\site-packages\django\confinit p, line 14, in codule>
from django.conf import settings
from pathlib Import Path
ModuleNotFoundError: No module named 'pathlib
The above exception was the direct cause of the follading exception:
Traceback (most recent call last): File "nage.py", line 22, in ondule>
main()
File "manage.py", line 17, in main
) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHCIPATH environt variable? Did you forget to activa te a virtual environment?
maybe you forgot to activate your virtualenv if you created one before you start coding!
Alikhanov Jakhongir
malloc
Hi devs. I'm building a blog page, how do I render blog content from the model that contains paragraphs, numericals and ordering symbols so have to have an appealing structure?
Thara
Alikhanov Jakhongir
How to active that..?
Do you have one?
If you do enter the following command in the same directory with your virtualenv
(OS Windows)==> virtualenv\Scripts\activate
(MacOS or Linux) ==> source virtualenv/bin/activate
ms tk
make sure your python environment
try to deactivate venv and activate again
ms tk
I'm getting errors like
E:Wive & Tharand\Thharand worksbot Project>cd main part
E: Vive & Tharand\Thharand worksbot Project main partspython manage.py runserver
Traceback (most recent call last): File "manage.py", line 11, in main
from django.core.management import execute from command line
File "C:\Users\ENTIN\AppData\Local\Programs Python Python37\lib\site-packages\django\core management init__.py", line 14, in codule> File "C:\Users\T\AppData\Local\Programs Python Python37\lib\site-packages\django\confinit p, line 14, in codule>
from django.conf import settings
from pathlib Import Path
ModuleNotFoundError: No module named 'pathlib
The above exception was the direct cause of the follading exception:
Traceback (most recent call last): File "nage.py", line 22, in ondule>
main()
File "manage.py", line 17, in main
) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHCIPATH environt variable? Did you forget to activa te a virtual environment?
.
Always
I have a paid project in django
Usecase is to build user registration, login and API integration with google, fb,etc.. Anyone interested, pls dm.
malloc
I'm getting errors like
E:Wive & Tharand\Thharand worksbot Project>cd main part
E: Vive & Tharand\Thharand worksbot Project main partspython manage.py runserver
Traceback (most recent call last): File "manage.py", line 11, in main
from django.core.management import execute from command line
File "C:\Users\ENTIN\AppData\Local\Programs Python Python37\lib\site-packages\django\core management init__.py", line 14, in codule> File "C:\Users\T\AppData\Local\Programs Python Python37\lib\site-packages\django\confinit p, line 14, in codule>
from django.conf import settings
from pathlib Import Path
ModuleNotFoundError: No module named 'pathlib
The above exception was the direct cause of the follading exception:
Traceback (most recent call last): File "nage.py", line 22, in ondule>
main()
File "manage.py", line 17, in main
) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHCIPATH environt variable? Did you forget to activa te a virtual environment?
Make sure the environment is install in the project's root directory
Thara
Alikhanov Jakhongir
Alikhanov Jakhongir
Alikhanov Jakhongir
プラティク
I'm getting errors like
E:Wive & Tharand\Thharand worksbot Project>cd main part
E: Vive & Tharand\Thharand worksbot Project main partspython manage.py runserver
Traceback (most recent call last): File "manage.py", line 11, in main
from django.core.management import execute from command line
File "C:\Users\ENTIN\AppData\Local\Programs Python Python37\lib\site-packages\django\core management init__.py", line 14, in codule> File "C:\Users\T\AppData\Local\Programs Python Python37\lib\site-packages\django\confinit p, line 14, in codule>
from django.conf import settings
from pathlib Import Path
ModuleNotFoundError: No module named 'pathlib
The above exception was the direct cause of the follading exception:
Traceback (most recent call last): File "nage.py", line 22, in ondule>
main()
File "manage.py", line 17, in main
) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHCIPATH environt variable? Did you forget to activa te a virtual environment?
Go the folder in which your virtual env is installed type
.\django\scripts\activate
Thara
Hey guys... All my errors gone...
Really thanks a lot 🙏❤️
Nariman
Hello!
Could you take a peek at my CBV and give me some best practice recommendations. I don't want to screw up when this code is seen by the boss...
This piece of code just filters the queryset and sets the page header depending on the request.
https://pastebin.com/yZUzJMKL
....
Hello guys ,
Can I give a boolean value variable for a field in crisp_form
I mean like this :
self.helper.layout = Layout(
Column('name', id='name'),
FormAction(
Submit('save','save', is_btn=True)
)
)
Then can I do use this in templates like this
{%if is_btn%}
{{form.name}}
{%endif%}
If I can't do like this .?
How can I do these things.
Daniel
where is the problem guys? if i remove the text method i get none
Champak Lal
How can i display user phonenumber on page?
Champak Lal
I m using django inbuilt user
Anastalex
Hello! How to get a cookie inside class ListView?
Firdavs
Hello How do I blog hit counter
Does somebody do it
Anonymous
My model is set like this. But when i try to change the date Im not able to change the date other than the current days date. When i display the date I also want to see time when it was chnaged.
Can anyone please help.
Thanks
class Meeting(models.Model):
actual_date = models.DateTimeField(auto_now=True)
change_date = models.DateTimeField(auto_now=True)
Anonymous
Is there a way I can create a field with “DateTimeField” in the models and update the date and time other then the current date??
John
https://ibb.co/5r0bvRw
John
https://pastebin.com/580pW4ik
John
guys how can we customize our default many to many field so we can see more option like forgine key or some other field from parents model
Stealth
can anyone tell me how to make reference between two embedded models of the same parent model?
malloc
Ola
Hi Guys,
I’m having issues trying to deploy a Django app onto Heroku - added Python-decouple to hide my secret keys and database configuration now I’m getting errors - when I push to heroku
Horlarwumhe
Ola
Share errors you are getting.
Please see below:
2021-07-08T21:29:02.385664+00:00 app[web.1]: File "/app/ecars/settings.py", line 15, in <module>
2021-07-08T21:29:02.385665+00:00 app[web.1]: from decouple import config
2021-07-08T21:29:02.385665+00:00 app[web.1]: ModuleNotFoundError: No module named 'decouple'
2021-07-08T21:29:02.386046+00:00 app[web.1]: [2021-07-08 21:29:02 +0000] [8] [INFO] Worker exiting (pid: 8)
2021-07-08T21:29:02.399481+00:00 heroku[web.1]: State changed from starting to up
2021-07-08T21:29:02.531477+00:00 app[web.1]: [2021-07-08 21:29:02 +0000] [4] [WARNING] Worker with pid 7 was terminated due to signal 15
2021-07-08T21:29:02.622661+00:00 app[web.1]: [2021-07-08 21:29:02 +0000] [4] [INFO] Shutting down: Master
2021-07-08T21:29:02.623434+00:00 app[web.1]: [2021-07-08 21:29:02 +0000] [4] [INFO] Reason: Worker failed to boot.
2021-07-08T21:29:02.727911+00:00 heroku[web.1]: Process exited with status 3
2021-07-08T21:29:02.846731+00:00 heroku[web.1]: State changed from up to crashed
Horlarwumhe
Ola
Gk
Hello All
I have a csv file want to create checkbox based on csv file header in Django , how should I approach or which library to use
Umutbek
Hello everyone!!!
I have 2 projects in 1 server. Configured nginx. It's ok, working. But static rooted only to first project. Can't root it to 2nd project
Source code:
location = /favicon.ico {
access_log off;
log_not_found off;
alias /home/path1/reactapp/path1/build/favicon.ico;
}
location /static/ {
root /firstapppath/;
}
location /firstapp/ {
include proxy_params;
proxy_pass http://unix:/run/gunicorn_stag.sock;
}
location /secondapp/ {
root /path2/;
index index.html;
try_files $uri $uri/ /index.html =404;
}
}
whatsinaname
Django project ideas for resume
Anonymous
i want to phone number of user as a field in user form means while creating the user phone number will be needed . please provide me the link or code that how can i add custom field to the user
Anonymous
/media/productimag/th_6.jpg
Not found url show
Anonymous
Set media_url and media root
Enigma
anyone knows what's the name of this text format?
0x787fcf80659B811d2bC27460EB2A91868e85Ffe8
Zerat
Enigma
Anshu
Anyone know how to solve parse error in django restframework,
I am newbie to djangorest
Bobosher
Bobosher
Anshu
GOPINATH
Anyone done stackoverflow clone using django + react. ..
I am trying to implement the team functionality .. any suggestions.
sheikh
How to use drf filter with multiple class
Anshu
mukul
i have profile objects ......
but in the html the profile image is on left side on first card and on second its on right side ....
how can i run the for loop in it
Anastalex
urls:
path('', views.IndexView.as_view(), name='index'),
path('index', views.IndexView.as_view(), name='index'),
views:
...
return redirect('index')
Fall:
Reverse for 'index' not found. 'index' is not a valid view function or pattern name.
What could I miss?
Xurshidjon
Anastalex
It's is
AJ
Anastalex
Thank you, I'll google it
Anonymous
Hi everyone. Any idea of how to update like 3 nested serializers in drf.
Dev Femi Badmus
@ nigeriaprogrammer
Anonymous
Anyone send me best dhango tutorial course link,
Rohan
Enigma
anyone used Telegram API before?
Rohan