Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-29 Thread ramadhan ngallen
For security purpose these settings should be on debug=True On production you should change those urls to have dedicated server for static files like   Nginx On 30 Jun 2021, 07:28 +0300, patel dhruvish , wrote: > Do you add static code in setting.py and urls.py? Code is here > > Setting.py:-

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-29 Thread patel dhruvish
You want to add {%load static%} at the top of the code On Wed, Jun 30, 2021, 09:58 patel dhruvish wrote: > Do you add static code in setting.py and urls.py? Code is here > > Setting.py:- > Project urls.py:- > Then load static file with format like:- > > STATICFILES_DIRS = [ >

RE: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-29 Thread yeddu.j.prasad
Hope you have this in the section of your template. {% load static %} {% block head %} {{luserdetails.luserrolename}} | Aspirations {% endblock %} From: django-users@googlegroups.com On Behalf Of UJJWAL AGRAWAL Sent: 30 June 2021 09:47 To: django-users@googlegroups.com

Re: code question

2021-06-29 Thread frank dilorenzo
I thought I had been everywhere on the web but guess not. This really helped me a lot and I have it working now. Thanks a lot! frank- On Tue, Jun 29, 2021 at 7:57 PM Lalit Suthar wrote: > https://youtu.be/SNXn76SI1Ks > try this > > On Wed, Jun 30, 2021, 1:27 AM frank dilorenzo > wrote: > >>

Re: when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-29 Thread patel dhruvish
Do you add static code in setting.py and urls.py? Code is here Setting.py:- Project urls.py:- Then load static file with format like:- STATICFILES_DIRS = [ BASE_DIR / "static", '/var/www/static/', ] Project urls.py:- from django.conf import settingsfrom django.conf.urls.static

when i am writing {%load static%} rather than getting exectuted it is getting displayed as simple text on htmloutput screen

2021-06-29 Thread UJJWAL AGRAWAL
Dear all I am facing one problem. When I am writing {%load static%} rather than getting executed it is getting displayed as simple text on the HTML output screen Please provide me the solution. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: code question

2021-06-29 Thread Lalit Suthar
https://youtu.be/SNXn76SI1Ks try this On Wed, Jun 30, 2021, 1:27 AM frank dilorenzo wrote: > Here is a function view: > > def base(request): > > shipments = Shipment.objects.all().order_by("-slabel")[:5] > > suppliers = Supplier.objects.all() > > > context = { > >

Free Django beginner lessons

2021-06-29 Thread Symaxx
Hi guys I wanna teach Django to any interested beginners, If you are interested please email me on bukhosizimc...@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send

code question

2021-06-29 Thread frank dilorenzo
Here is a function view: def base(request): shipments = Shipment.objects.all().order_by("-slabel")[:5] suppliers = Supplier.objects.all() context = { "shipments": shipments, "suppliers": suppliers, } return render(request, "base/dashboard.html",

Authentication with Multiple User

2021-06-29 Thread Ridwan Adeyemo
Hello, How do I implement a multiple users registration/signup form. For example the user needs to have (username, name password, and confirm password ) while the seller is going to have (Business Name, Business Email, address, tax id, phone number and password, and confirm password) Best

date filtering in with __gte does not add apostrophe

2021-06-29 Thread safhac
when filtering using __gte on models.DateTimeField the printed query doesn't wrap the searched date with an apostrophe ' this may lead to undesired results in postgres database: WHERE ("appname_tablename"."creation_date" >= *2021-06-27 11:08:29.311284+00:00* AND "appname_tablename"."node_id" =

ImproperlyConfigured:

2021-06-29 Thread Yogesh Pawar
Watching for file changes with StatReloader Exception in thread django-main-thread: Traceback (most recent call last): File "/home/yogesh/mydjango/djangoenv/lib/python3.6/site-packages/django/db/backends/postgresql/base.py", line 25, in import psycopg2 as Database ModuleNotFoundError: No

Re: Django

2021-06-29 Thread Kasper Laudrup
On 6/29/21 1:13 PM, Théodore KOSSI wrote: Can I give arguments to HtpResponseRedirect()? Yes. Kind regards, Kasper Laudrup -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,

Re: Django

2021-06-29 Thread Théodore KOSSI
Can I give arguments to HtpResponseRedirect()? Le mar. 29 juin 2021 à 12:11, Théodore KOSSI a écrit : > > Hello guys, i want to use HttpResponseRedirect() and also give an > argument. Can i do that? > > theodoros17@python-developer > -- theodoros17@python-developer -- You received this

Django

2021-06-29 Thread Théodore KOSSI
Hello guys, i want to use HttpResponseRedirect() and also give an argument. Can i do that? theodoros17@python-developer -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

How to parse JSON data in python and Django

2021-06-29 Thread Salima Begum
Hi all, >From below json data to parse this data to fetch categoryId and categoryName in four levels of data I used for loop for fetching data and inserting into database table. Is there any better way to do this in python and Django? Please Help me to achieve this. Let me know if you have any