All Questions
Tagged with python-2.7 django
4,016 questions
-1
votes
2
answers
79
views
can't find the page URL
I got the same error while writing code.
I started making this project using a video tutorial on YouTube. I think the problem is in the URLConf but I can’t find this problem myself.
Essentially the ...
0
votes
1
answer
75
views
Django Tests Throw ORA-00942: table or view does not exist
I haven't found any questions with respect to Django tests and Oracle DB. I am trying to run a test on an existing application, but am running into the table or view doesn't exist error.
I am confused ...
0
votes
0
answers
40
views
django project on macbook pro M1 pro crashed with illegal hardware instruction
environment: 16-inch,2021
cpu: Apple M1 Pro
mermory: 16 GB
os version: 14.4.1 (23E224)
python version: 2.7.15
Heading
i try to run "python manage.py runserver 0.0.0.0:8080", but i got ...
3
votes
1
answer
221
views
Unable to connect to cloud datastore from local legacy project based on python2.7 and django 1.4
I have a django==1.4 project (python==2.7) that I wanted to run and make some changes. I am unable to connect to cloud datastore from my local codebase. Right now, when I run the project using ...
0
votes
0
answers
99
views
Using stage_block API to upload file chunk is so slow when executing under Uwsgi request in Django
I am using python 2.7.18 with azure-storage-blob==12.3.2 and Django to implement file upload with small chunk, when calling stage_block API in interactive mode directly each chunk request takes less ...
0
votes
0
answers
36
views
Not able to install django-filetransfers for python 2.7.18
I am not able to install django-filetransfers for python 2.7.18, I have the same installed in other machine but since I am migrating the project to the new machine I am trying to install it. Please ...
0
votes
2
answers
2k
views
I am trying to install django-jazzmin but I am getting an error
When I try to install django-jazzmin using command pip install django-jazzmin I am getting the error.
ERROR: Could not find a version that satisfies the requirement django>=2 (from django-jazzmin) (...
0
votes
2
answers
28
views
django problem when i start an application
When I start an application like (pages) then I link it with the project in settings => INSTALLED_APPS:
INSTALLED_APPS = [ 'pages.app.PagesConfig', 'django.contrib.admin', 'django.contrib.auth', '...
1
vote
1
answer
57
views
Clarification Regarding Pip Package Sub Dependencies Getting Upgraded
I have a doubt regarding pip installation.
Suppose i have a requirements.txt file in python project as below
Django==4.1.7
While downloading Django it also downloads sub dependencies.
└─$ pip show ...
0
votes
1
answer
294
views
how to use twilio webhook to reply to an sms in production
I am new to Twilio services and just started using their api for sms with django. the sms outbound work well and now i want to make sure to grab the value replied by the person who has received the ...
0
votes
1
answer
57
views
what is a function inside a function in django/python
I wanna know, what is main idea function inside a function in djanggo?, something like this example.
def partition_by_mod(base):
def func(n):
return n % base
return staticmethod(func)
...
0
votes
1
answer
434
views
"Django-filter" Is it possible to use FilterClass(FilterSet) MultipleChoiceFilter within ViewSet methods? Django 1.11, Python 2.7
I have my class ClassFilter(FilterSet) with some of the Filters fx. MultipleChoiceFilter, ModelMultipleChoiceFilter etc. in it:
class ClassFilter(FilterSet):
something_severity = ...
0
votes
0
answers
474
views
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb. Did you install mysqlclient or MySQL-python?
I wanted to install MySQL database for a Django Project which is developed in Python 2.7
I watched a lot of StackOverflow questions and responses... and I could not find a solution, but what i found ...
0
votes
1
answer
885
views
How to profiling django tests
In my django (very very ancient 1.9) project tests are very slow - Ran 758 tests in 1017.001s, ~ 1.3 s/test
How to profile its using Pycharm? Or another IDE.
-2
votes
3
answers
2k
views
How to append Dictionary keys null values in a list?
I have a dictionary that has multiple keys and each key has multiple values in list format, if the keys have a Null value then the key should be appended to a list.
here is my dictionary:
{'XSTY':['21....