Skip to main content

All Questions

0 votes
0 answers
23 views

Django caching causing blank screen on Brave browser

I have a new Django website and have just implemented the filesystem cache (django.core.cache.backends.filebased.FileBasedCache). This seems to work fine when I use a chrome browser to view the site, ...
The Huff's user avatar
  • 485
1 vote
1 answer
60 views

how to fix bad request error in platform.sh

im learning web deployment using platform.sh. i pushed my files to platform.sh by command "platform push" and then supposed to get my live url by commanding "platform url" i got ...
Kaniska Ranjan Barman's user avatar
0 votes
0 answers
278 views

ERROR : metadata-generation-failed while installing uwsgi

using the command pip install uwsgi it gave the error : metadata-generation-failed i was tring to install a WSGI web server for flask, pip install uwsgi and install web server, i needed, And to get ...
Tabish Qidwai's user avatar
1 vote
2 answers
145 views

How to create instance of a django model

views.py def create_post(request): profile_inst = Profile.objects.filter(author_real=request.user).first() print(profile_inst) if request.method == 'POST': print('POST request') ...
Rishabh's user avatar
  • 13
0 votes
1 answer
654 views

Applying Additional Styles to Inherited Django Templates

In my Django project, I've set up a base HTML template (base.html) with a set of CSS styles. This base template is inherited by several other templates across my project. The challenge I'm facing is ...
m0ckin.8ird's user avatar
2 votes
0 answers
69 views

I'm struggling to create a if condition within a for loop with Django template language. CS50w Project2

View my code here https://gist.github.com/Schultzy11/d93bc34d13adc1263337604c44827147 I have a for loop with the 'listings' variable that works and I can index into it to create the values I want. But ...
Schultzy11's user avatar
2 votes
2 answers
57 views

DJANGO: path searched will not match URL patterns

I am new to Django following a tutorial, but cannot get past this error message from Django. I am typing in the file path exactly, but it will not work. Here is the website URLs .py: from django....
elgulfsurfer's user avatar
0 votes
0 answers
60 views

How to change background image in django web app using the admin interface?

I want to change the background of the home page in my web app but using the admin interface. I made a model specific for the backgrounds of each section used in the home page. this was my first ...
Inas Sati's user avatar
1 vote
0 answers
61 views

Looking for button to navigate to login page in python using justpy

I'm using justpy to make a small scale management system, its a framework for developing web apps in python without css/html/js. The menu displays itself but none of the buttons work.The following is ...
Humza Haroon's user avatar
0 votes
0 answers
192 views

Image Upload Django with Ckeditor Failed Undefined

I'm trying to create a blog page with Django. I'm using CKEditor to add text. When I upload images locally, I don't have any issues, but I encounter a problem when I deploy the project to the server. ...
Ufuk Çiçek's user avatar
0 votes
1 answer
102 views

Django 'python manage.py runserver' has stopped working. How can I fix this?

I'm attempting to use Django to create a website builder. I have created a development webserver with "python manage.py runserver" and it worked initially. I created a Products app and added ...
user22407751's user avatar
-1 votes
1 answer
398 views

My HTML page is showing the {% extends "/tasks/layout.html" % } statement in the page preview. I am using Django. How do I solve this problem?

This is my layout.html file: <!DOCTYPE html> <html lang="en"> <head> <title>Tasks</title> </head> <body> {% block content %} {%...
Rohit Gusain's user avatar
0 votes
0 answers
56 views

how can i get date of each weekdays for this week on python?

Lets explain it by giving a example: Lets say im going to create a shopping website, and i want to show statics of the items sold for this week. like: Sunday - 10 products sold Saturday - 14 products ...
TheAspectDev's user avatar
0 votes
0 answers
60 views

Restricting website access by client geolocation

I need to restrict access to a website because of countries regulations. I know that Hosting providers or CDNs/Webservers like Cloudflare or NGINX can do that for me and is probably the best approach (...
NicoLS's user avatar
  • 47
0 votes
1 answer
53 views

model form doesn't render form again when form is not valid

I added Min and Max Value validators to my Django model and then when I enter a value out of this range, instead of rendering form again,it raises a value error. ValueError: The view cars_form.views....
sina janiloran's user avatar

15 30 50 per page
1
2 3 4 5
13