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:-
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 = [
> BASE_D
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
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:
>
>>
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 im
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.
To
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 = {
>
> "shipments"
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 a
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", context)
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 Reg
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" =
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
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, se
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 mess
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 em
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 su
16 matches
Mail list logo