models.py
class Position(models.Model):
title = models.CharField(max_length=50)
def __str__(self):
return self.title
class Department(models.Model):
title = models.CharField(max_length=50)
def __str__(self):
return self.title
class Employee(models.Model):
fu
i solved that , i deleted all the databases and makemigrations and migrate
and all was done good
On Thu, 10 Aug 2023 at 18:12, Mz Gz wrote:
> Maybe you referenced another model in your model and the referenced model
> is no more there or its name changed
>
> On Thu, 10 Aug 2023, 2:10 pm Kani Sbt
Maybe you referenced another model in your model and the referenced model
is no more there or its name changed
On Thu, 10 Aug 2023, 2:10 pm Kani Sbt, wrote:
> django.db.migrations.exceptions.InconsistentMigrationHistory: Migration
> admin.0001_initial is applied before its dependency lottyapp.00
django.db.migrations.exceptions.InconsistentMigrationHistory: Migration
admin.0001_initial is applied before its dependency lottyapp.0001_initial
on database 'default'.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this g
You have verify of the route of your home page is correctly link to your views
Flavien
Whatsapp+243899429099
On 6/5/23, ALBERT ASHABA AHEEBWA wrote:
> You need to us the some code (Installed apps, views.py as well as urls.py )
> for us to help. They're all connected.
>
>
>
> Best Regards,
>
> Alb
You need to us the some code (Installed apps, views.py as well as urls.py )
for us to help. They're all connected.
Best Regards,
Albert Ashaba Aheebwa
+256 781 435857
On Mon, 5 Jun 2023, 16:24 Kit Jenkins, wrote:
> Hello everyone, I just finished my first tutorial django project, but now,
>
This tutorial will help you to achieve what you are trying.
On Mon, Jun 5, 2023 at 2:32 PM Jishnu Ramachandran <
jishnuchandrala...@gmail.com> wrote:
> https://www.youtube.com/watch?v=Xlp9G137-MI
>
> On Mon, Jun 5, 2023 at 5:51 AM Makan Dianka
> wrote:
>
>> Do you have an account on aws ? Do you
https://www.youtube.com/watch?v=Xlp9G137-MI
On Mon, Jun 5, 2023 at 5:51 AM Makan Dianka wrote:
> Do you have an account on aws ? Do you have a web server on aws ?
> Can you ssh into your server aws ?
>
>
> Le dim. 4 juin 2023, 21:17, Francesco Gariboldi <
> fgfrancescogaribol...@gmail.com> a écr
Hello everyone, I just finished my first tutorial django project, but now,
when I'm trying to create a new project it keeps redirecting form home page
with blank url ' ' to non-existent app url 'catalog/'. I deleted all files
from previous project, I tried overriding path with RedirectView to a
Do you have an account on aws ? Do you have a web server on aws ?
Can you ssh into your server aws ?
Le dim. 4 juin 2023, 21:17, Francesco Gariboldi <
fgfrancescogaribol...@gmail.com> a écrit :
> Hi I developed a simple personal blog with Django and Nginx as a reverse
> proxy server and want to
Hi I developed a simple personal blog with Django and Nginx as a reverse
proxy server and want to deploy It with AWS in the most cost effettive way.
Which Is It? And I don't understand the ports flow between localhost,
Django (uwsgi+gunicorn), Nginx, docker (compose), postgrSQL and AWS
RDS...ca
My code is import re iine = “My name is Bahtta. I want to learn”print(re.findall('[aeiou]+', line))And is it is running okSent from Mail for Windows From: Ramesh BhattaSent: Wednesday, May 24, 2023 6:41 AMTo: django-users@googlegroups.comSubject: Please help me solving this error Trace
Traceback (most recent call last):
File "C:\users\rudra\desktop\python\client2.py", line 1, in
import urllib.request
File
"C:\Users\Rudra\AppData\Local\Programs\Python\Python311\Lib\urllib\request.py",
line 84, in
import base64
File
"C:\Users\Rudra\AppData\Local\Programs\Python\Pyth
can you provide more details about the specific issues you are facing when
trying to call this method? Are you getting any error messages, or is the
function simply not being called? Any additional information you can
provide will help me better understand your problem.
I am providing you with
from channels.generic.websocket import AsyncWebsocketConsumer
import json
class MyConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_group_name = 'kafka'
# Join room group
await self.channel_layer.group_add(
self.room_group_name,
Hello guys, how can I return blurhash link in django, can I use Pillow or
any other python tools?
--
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 email
to django-users+un
Hello Dear
You should name your apps without the app word in the end
Example :
INSTALLED_APPS = [
"apps.store'',
" apps.core",
]
This will definitely work
Regards
On Wed, 19 Oct 2022, 7:30 AM regan opere, wrote:
> Many, thanks for the reply. However, I have two apps in the directory
> c
You need to give the django apps you created unique names (try to see them
as separate entities), in your case this would be 'core' and 'store', then
you need to add them to the INSTALED_APPS list like so in the settings file:
[...,
'core.apps.CoreConfig',
'store.apps.StoreConfig',
]
On Wed, Oct
Many, thanks for the reply. However, I have two apps in the directory
called Apps..
so when I name the apps in the settings using
tiles.apps.TilesConfig' it still does'nt work
naming them like this:
'apps.core.apps',
'apps.store.apps',
also still giver the error: django.core.exceptio
Lets take App Directory name tiles.
So inthe installed app list it will be
'tiles.apps.TilesConfig',
Or put simply
'tiles',
Hope it helps .
On Tue, Oct 18, 2022, 06:16 regan opere wrote:
> Hello, I am new to django and I am still learning.
> I have created two apps core and store and I have re
Hello, I am new to django and I am still learning.
I have created two apps core and store and I have registered them in the
settings file of my root directory.
This is the error I get:
django.core.exceptions.ImproperlyConfigured: Application labels aren't
unique, duplicates: apps
my settings lo
thanks bro
On Wed, Jul 27, 2022 at 7:36 AM Abdul Qoyyuum
wrote:
> This is a Django group. I don't know how its implemented in Android but
> for your use case, you will need to learn Socket programming. Other than
> that, I can't help you. Sorry.
>
> On Tue, Jul 26, 2022 at 6:55 PM Chelsea Fan
>
This is a Django group. I don't know how its implemented in Android but for
your use case, you will need to learn Socket programming. Other than that,
I can't help you. Sorry.
On Tue, Jul 26, 2022 at 6:55 PM Chelsea Fan
wrote:
> Hello, such a question, we plan to implement an application for And
Hello, such a question, we plan to implement an application for Android,
for a TV and for a phone, it will be an application with the broadcast of
different channels, you will need to stream somehow, i.e. there is no
direct access.
which technologies I 'v to use for it?
--
You received this messa
lizer = KanbanSubTaskSerializer(instance)
serializer.is_valid(raise_exception=True)
return Response(serializer.data)
# self.perform_update(serializer)
# return Response(serializer.data)
i am tried hardly to figure but unfortunately it didnt work out please help
me to run this secenario
--
You
*my humble request :-*
please help me
here i do have some columns called *sub_task_name* tht should every day
update same perivous task_name but* sub_task_value* shld not update it shld
give option to user to enter new value
same criteria for* task_name *shld be same perivous entered but
On 15/05/2022 03.15, Wisdom Ugochukwu wrote:
I hosted a Django project on Name Cheap, it works well on development,
but on going live I noticed image creation and update is not working
here is the error I'm getting! Please kindly help
/lib64/libc.so.6: version `GLIBC_2.14' not found (required
I hosted a Django project on Name Cheap, it works well on development, but
on going live I noticed image creation and update is not working
here is the error I'm getting! Please kindly help
ImportError at /admin/store/otherimages/2/change/
/lib64/libc.so.6: version `GLIBC_2.14' not found (require
my main project urls.py file has
urlpatterns = [
path('mainapp/', include('mainapp.urls', namespace='mainap)),
]
and my app urls.py has the following path
path('', views.item_list, name='item_list'),
my allowed hosts in settings is
ALLOWED_HOSTS = ['.herokuapp.com']
i have already deployed the a
Hi,
Thanks for the response, I have tried to print the username before creating
the user, but it did not work. I have also tried to use pdb that also
didn't work.
How to do it can give proper instructions??
I have searched about it on google but have not received any relevant
answer.
On Wedne
share screen shot
On Wed, Feb 23, 2022 at 12:24 PM Antonis Christofides <
anto...@antonischristofides.com> wrote:
> You have this statement:
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> Just before this statement, you need to insert a statement
Hi Raj,
Error is showing due to the blank value in user name, please try to print
username before registration if it's blank please check form fields.
Once done you can directly login your account with
"auth.login(request,user)
On Wed, 23 Feb, 2022, 12:22 pm Antonis Christofides, <
anto...@ant
7008080545 DM .
On Wed, 23 Feb 2022, 12:22 pm Antonis Christofides, <
anto...@antonischristofides.com> wrote:
> You have this statement:
> user = User.objects.create_user(username=username, email=email,
> password = password)
>
> Just before this statement, you need to insert a statement that
You have this statement:
user = User.objects.create_user(username=username, email=email, password =
password)
Just before this statement, you need to insert a statement that will enable you
to examine the value of the "username" statement. Something like this:
print(username)
us
Hello, basically where you are calling this route you have to pass
something like this: *{% url 'placeOrder' 1 %}* and it is being called
without nd like this: *{% url 'placeOrder' %}*, but as posted above it
would be better to put the code for the person to analyze
Em quinta-feira, 13 de janei
Please share me your code privately so that I can solve your proy as soon
as possible.
On Thu, Jan 13, 2022, 20:16 sharath p wrote:
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/
>
> Django Version: 4.0.1
> Python Version: 3.10.1
> Installed Applications:
> ['dj
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/
Django Version: 4.0.1
Python Version: 3.10.1
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sta
Alright Peter sorry i get it. Fine
On Tue, Aug 31, 2021, 2:16 PM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:
> You seem to be confused about who asked the question because it was not me
> who asked the question.
> On 8/31/21 6:58 AM, Munzir Abba Daneji wrote:
>
>
You seem to be confused about who asked the question because it was not
me who asked the question.
On 8/31/21 6:58 AM, Munzir Abba Daneji wrote:
> Hi peter The tag library you use is not correct use
>
> {% load static %}
>
> again you html directory seems to be not organise try project_folder >
Hi peter The tag library you use is not correct use
{% load static %}
again you html directory seems to be not organise try project_folder >
Template_folder> index.html for example
On Tue, Aug 31, 2021, 1:46 AM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:
> Uh w
Uh what question are you answering?
On 8/30/21 12:55 PM, Munzir Abba Daneji wrote:
> Peter Check your Template DIR you supposed to organize you folders
> flow under your "first_project" folder create the template folder and
> inser you html
>
> On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' v
Peter Check your Template DIR you supposed to organize you folders flow
under your "first_project" folder create the template folder and inser you
html
On Mon, Aug 30, 2021, 5:09 PM 'Peter van der Does' via Django users <
django-users@googlegroups.com> wrote:
> You got a " on line 2 that shouldn'
You got a " on line 2 that shouldn't be there
On 8/28/21 1:15 PM, DUSHYANT SINGH wrote:
> In template C:\Users\DUSHYANT
> THAKUR\PycharmProjects\django\gs15\course\templates\course\index.html,
> error at line 2
> '"' is not a registered tag library. Must be one of:
>
> 1 :
>
send the template
On Sunday, 29 August 2021 at 08:12:37 UTC+5:30 du19sh...@gmail.com wrote:
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/cor/learndj/
>
> Django Version: 3.0
> Python Version: 3.8.6
> Installed Applications:
> ['django.contrib.admin',
> 'django.
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/cor/learndj/
Django Version: 3.0
Python Version: 3.8.6
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.co
check your database table though some UI. make sure that the " polls_question"
is not there
On Tuesday, 10 August, 2021, 07:20:42 pm IST, Vikram Gajjala
wrote:
SQL Server 2019Python 3.9.6pip 21.2.3python -m django --version 3.2.6
asgiref 3.4.1astroid 2.6.6
SQL Server 2019
Python 3.9.6
pip 21.2.3
python -m django --version 3.2.6
asgiref 3.4.1
astroid 2.6.6
colorama 0.4.4
Django 3.2.6
django-mssql-backend 2.8.1
django-pyodbc1.1.3
django-tastypie 0.14.3
isort5.9.3
lazy-obj
This article can help
:
https://hakibenita.medium.com/how-to-add-custom-action-buttons-to-django-admin-8d266f5b0d41
On Thursday, 5 August 2021 at 18:31:52 UTC+5:30 arvind@gmail.com wrote:
> hey guys i want to add the action on click the list will be filter of
> objects
>
> here the on cl
-- Forwarded message -
From: Parul.
Date: Wed, Jun 23, 2021, 11:34 PM
Subject: Error while creating an ecommerce website :PLEASE HELP!
To:
Hi,
I am working on an ecommerce website. I am facing an error. Can anyone
please help me solve this error.
I am not able to fetch the
w you are you are using,
>>> And then get products thrid that I'd by simple ORM quriy
>>>
>>> Product = model name.objects.get(id=id)
>>>
>>> On Wed, 23 Jun, 2021, 11:35 PM Parul., wrote:
>>>
>>>> Hi,
>>>>
>
>> Product = model name.objects.get(id=id)
>>
>> On Wed, 23 Jun, 2021, 11:35 PM Parul., wrote:
>>
>>> Hi,
>>> I am working on an ecommerce website. I am facing an error. Can anyone
&g
d to the view you are you are using,
> And then get products thrid that I'd by simple ORM quriy
>
> Product = model name.objects.get(id=id)
>
> On Wed, 23 Jun, 2021, 11:35 PM Parul., wrote:
>
>> Hi,
>> I am working on an ecommerce website. I am facing an error. Ca
Pass I'd to the view you are you are using,
And then get products thrid that I'd by simple ORM quriy
Product = model name.objects.get(id=id)
On Wed, 23 Jun, 2021, 11:35 PM Parul., wrote:
> Hi,
> I am working on an ecommerce website. I am facing an error. Can anyone
> please
Hi,
I am working on an ecommerce website. I am facing an error. Can anyone
please help me solve this error.
I am not able to fetch the PRODUCT_ID
1. views.py (APP-CART)
---
from django.shortcuts
Anyone interested in talking about django sharing their knowledge or path
or want to learn more?
meeting Now
https://meet.google.com/wcv-ojtf-vhi
On Sat, Jun 19, 2021 at 10:31 AM DJANGO DEVELOPER
wrote:
> please can someone help me?
>
> On Sat, Jun 19, 2021 at 9:31 AM DJANGO DEVELOPER
> wrote
please can someone help me?
On Sat, Jun 19, 2021 at 9:31 AM DJANGO DEVELOPER
wrote:
> for convenience, please follow addorder1 to addorder5 respectively.
>
> On Saturday, June 19, 2021 at 9:29:48 AM UTC+5 DJANGO DEVELOPER wrote:
>
>> Hi guys I need urgent help. your help is appreciated.
>> When
for convenience, please follow addorder1 to addorder5 respectively.
On Saturday, June 19, 2021 at 9:29:48 AM UTC+5 DJANGO DEVELOPER wrote:
> Hi guys I need urgent help. your help is appreciated.
> When I try to add a single order from user side then it works fine but
> when I try to add multiple
Are you expecting javascript in python
On Thu, 27 May, 2021, 2:14 am sourav panja, wrote:
> Field 'id' expected a number but got
>
> How to solve this problem
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this gr
On 26/05/2021 19.48, sourav panja wrote:
> Field 'id' expected a number but got
>
> How to solve this problem
>
This will be a good start:
https://zellwk.com/blog/asking-questions/
It will help you solve this and many other similar problems.
Kind regards,
Kasper Laudrup
--
You received th
Field 'id' expected a number but got https://groups.google.com/d/msgid/django-users/c53edff7-f7f4-4566-97ff-3b9cadf8ee22n%40googlegroups.com.
Did you include documentation.urls in your project urls instead of
foodcode.urls?
On 2 May 2021, 13:40 +0300, FIRDOUS BHAT , wrote:
> replacing the documentation app with foodcode should resolve the issue
>
> On Sun, May 2, 2021 at 3:13 PM ramadhan ngallen wrote:
> > Remove the app called documen
replacing the documentation app with foodcode should resolve the issue
On Sun, May 2, 2021 at 3:13 PM ramadhan ngallen wrote:
> Remove the app called documentation and replace it with foodcode. From
> directory you don't have an app called documentation
> On 2 May 2021, 12:41 +0300, Bheemanagowd
CAN YOU SHOW CASE THE SECTION WHERE YOU IMPORTED YOUR LIBRARIES
On Sun, May 2, 2021 at 10:57 AM ramadhan ngallen wrote:
> Save your project it's not using autosave. Add trailing comma at the end
> DIR list of template directories then run migrations and observe the error
> on Terminal
> On 2 May
Save your project it's not using autosave. Add trailing comma at the end DIR
list of template directories then run migrations and observe the error on
Terminal
On 2 May 2021, 12:52 +0300, Bheemanagowda S Gowdra ,
wrote:
>
>
> On Sun, May 2, 2021 at 3:19 PM ramadhan ngallen wrote:
> > Expand yo
Expand your template directory so that we can see if documentation.html is
existing
On 2 May 2021, 12:47 +0300, Bheemanagowda S Gowdra ,
wrote:
> yes i got my mistake(instead of writing app name wrote html file name)
>
> but after this also getting same error
>
> On Sun, May 2, 2021 at 3:10 PM Bh
Don't forget to add comma , at the end of each installed apps list.
On 2 May 2021, 12:41 +0300, Bheemanagowda S Gowdra ,
wrote:
> this screenshot of settings.py INSTALLED_APPS list
>
>
> On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen wrote:
> > Show settings.py INSTALLED_APPS list. It seems you
Remove the app called documentation and replace it with foodcode. From
directory you don't have an app called documentation
On 2 May 2021, 12:41 +0300, Bheemanagowda S Gowdra ,
wrote:
> this screenshot of settings.py INSTALLED_APPS list
>
>
> On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen wrot
Seems like you've added documentation as a app name to your settings.py but
there isn't any app created with the name documentation
On Sun, May 2, 2021 at 3:00 PM ramadhan ngallen wrote:
> Show settings.py INSTALLED_APPS list. It seems you added an app named
> "documentation" .
> On 2 May 2021,
Show settings.py INSTALLED_APPS list. It seems you added an app named
"documentation" .
On 2 May 2021, 12:25 +0300, Bheemanagowda S Gowdra ,
wrote:
> sorry i am new to django and learning from youtube,
>
> i don't know what is happening while running "python manage.py runserver"
>
> On Sun, May 2
@googlegroups.com
Subject: Re: please help me to solve this error
sorry i am new to django and learning from youtube,
i don't know what is happening while running "python manage.py runserver"
On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup mailto:laud...@stacktrace.dk> > wrote:
Hav
sorry i am new to django and learning from youtube,
i don't know what is happening while running "python manage.py runserver"
On Sun, May 2, 2021 at 2:49 PM Kasper Laudrup wrote:
> Have a look here:
>
>
> https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
>
> Kind
Have a look here:
https://betterprogramming.pub/how-to-ask-questions-about-programming-dcd948fcd2bd
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,
#Model
Form Django import models
Class singupdata(models.model):
Username=models.CharField(max_len=20)
Password=models.CharField(max_len=20)
#form
from django import forms
Class Signform (forms.form):
Username=forms.IntegerFiled(
labe='E mail',
try this
*from reporter.models import Counties*
Regards
*Ajay Rathore*
Python Developer
On Thu, Apr 1, 2021 at 4:17 PM Ryan Nowakowski wrote:
> Since your models aren't in the migrations python package, I would use an
> absolute path in the import statement here rather than the relative path.
Since your models aren't in the migrations python package, I would use an
absolute path in the import statement here rather than the relative path.
On March 31, 2021 9:50:30 PM CDT, 'Dante Costabile' via Django users
wrote:
>Hiya Folks. Relatively new to django and quite enjoying it. However
try to copy the django.PYPI from the official website, then in your
command prompt type;
1.python -m
2 paste the pip syntax
It should look like this;
python -m pip install django
Else install python 3.8 because sometimes 3.9 gives an error when
configuring interpreter in pycharm
On Thu, Mar 1
Try python3. 9 -m pip install django==3.1.7
On Fri, Mar 19, 2021, 16:45 Anornymous u wrote:
> Yoh, join WhatsApp group and share error
> https://chat.whatsapp.com/Fb4d6Ivkio7H3EXKxNFI5q
>
> On Thu, Mar 18, 2021, 21:47 Kasper Laudrup wrote:
>
>> On 18/03/2021 19.04, Simon Lankwagh wrote:
>> > I
Yoh, join WhatsApp group and share error
https://chat.whatsapp.com/Fb4d6Ivkio7H3EXKxNFI5q
On Thu, Mar 18, 2021, 21:47 Kasper Laudrup wrote:
> On 18/03/2021 19.04, Simon Lankwagh wrote:
> > I have installed python 3.9 and selected 'add to path' during
> > installation, i am now trying to install
Please chack does you install django if not
Install pip install django
On Fri, Mar 19, 2021, 4:44 PM Simon Lankwagh
wrote:
>
> thank you all, i created a virtual environment and installed it.
>
> On Thursday, March 18, 2021 at 9:20:56 PM UTC+1 ule...@gmail.com wrote:
>
>> After installing python
How are you trying to install Django? Globaly? or on a Virtual Enviroment?
Try to install on a Venv.
Did you install python 3.9 in a new machine or did you have any previous
versions installed on it?
Try to remove any previous python version installed.
Can you please post the errors here, so it
Install pipenv
then type this in powershell :
pipenv install --python 3.9
pipenv install django
On Fri, Mar 19, 2021 at 1:10 AM Simon Lankwagh <
simmonshasbounced...@gmail.com> wrote:
> I have installed python 3.9 and selected 'add to path' during
> installation, i am now trying to install djang
thank you all, i created a virtual environment and installed it.
On Thursday, March 18, 2021 at 9:20:56 PM UTC+1 ule...@gmail.com wrote:
> After installing python, you have to install PIP.
> To install PIP type in the following:
> python get-pip.py
>
> To install django tye in the following :
>
After installing python, you have to install PIP.
To install PIP type in the following:
python get-pip.py
To install django tye in the following :
pip install django
Op donderdag 18 maart 2021 om 19:10:45 UTC+1 schreef
simmonshas...@gmail.com:
> I have installed python 3.9 and selected 'add to
Try installing miniconda o anaconda first.
El jue., 18 mar. 2021 3:10 p. m., Simon Lankwagh <
simmonshasbounced...@gmail.com> escribió:
> I have installed python 3.9 and selected 'add to path' during
> installation, i am now trying to install django 3.1.7 but it generates a
> lot of errors i can
On 18/03/2021 19.04, Simon Lankwagh wrote:
> I have installed python 3.9 and selected 'add to path' during
> installation, i am now trying to install django 3.1.7 but it generates a
> lot of errors i can not understand, please what is the right way to
> setup django development on windows 10?
>
Ju
I can't rewrite the mysite/polls form into classes.help me. I get
different errors every time.
{% csrf_token %}
{{ form.as_p }}
# forms.py:
from django import forms
from .models import Choice
class VoteForm(forms.ModelForm):
choices = [(ch.pk, ch.choice_text) for ch in
Choi
I have installed python 3.9 and selected 'add to path' during installation,
i am now trying to install django 3.1.7 but it generates a lot of errors i
can not understand, please what is the right way to setup django
development on windows 10?
--
You received this message because you are subscr
Thanks a lot!!!
My apologies, It is just because it is the first time for me in this Google
forum, so I didn't replay asap.
My apologies again for not being clear enough!
So the fact that I got that error was just because the template folder was
outside my main project and that the endless h
Kasper is right, we need more clear.
But anyway, here is one example. In settings.py:
from pathlib import Path
import os
ROOT_URLCONF = 'sclub.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['sclub/appsclub/templates'],
'AP
[image: Screenshot_7.png]
On Fri, Mar 5, 2021 at 9:36 PM Kasper Laudrup wrote:
> If you want someone to help you, please do take the time to write a
> proper question.
>
> Just posting an error message and screaming for help will most likely
> not get you a lot of help.
>
> Learning how to commu
If you want someone to help you, please do take the time to write a
proper question.
Just posting an error message and screaming for help will most likely
not get you a lot of help.
Learning how to communicate with other people is an important part of
being a developer.
Kind regards,
Kasp
Do you have a function in the hello/views.py? That's the first place to
start as the error suggests you do not.
On Monday, 4 January 2021 at 14:39:32 UTC joshr...@gmail.com wrote:
> hello is ur app name if so
> from hello import views
> try this
> if not be clear what is hello,index
>
> On M
why are you using
*from hello.views import index*
instead of
*from . import views*
On Mon, Jan 4, 2021 at 6:54 PM Gasar Iyali wrote:
> Hi
> Please I need your help.
> I have just installed django and when I try to run django I get this error
> message and nothing comes up in my browser.
> This
hello is ur app name if so
from hello import views
try this
if not be clear what is hello,index
On Mon, Jan 4, 2021 at 4:24 PM Gasar Iyali wrote:
> Hi
> Please I need your help.
> I have just installed django and when I try to run django I get this error
> message and nothing comes up in my brow
Hi
Please I need your help.
I have just installed django and when I try to run django I get this error
message and nothing comes up in my browser.
This is the error message that I get in the command prompt
!*<<<(env) C:\Users\Documents\Learn
Python\django\my_django_work\my_django_work\urls.py",
[image: aaa.png]
Here are the 4 screenshots I have for the structure. At first, it worked
perfectly fine when the 'src' folder was in Dev/trydjango/'src'. After I
moved 'src' to the another folder on Desktop and put it inside the
webserver folder. The files path is on top of my screen FYI. At th
*To add up, There are also 2 manage.py and 2 setting.py, some of the files
may be repetitive because I accidentally copied code from one to another so
it was duplicated.*
On Tuesday, August 4, 2020 at 9:22:36 PM UTC+7, Phan Nguyen wrote:
>
>
>
--
You received this message because you are subsc
It seems like your directoy structure is not proper after you moved some
files/folders. So, if you can send the screenshot of your directory
structure, it might be helpful for others to help you.
On Tuesday, August 4, 2020 at 10:12:32 AM UTC+5:30, Phan Nguyen wrote:
>
> *So I was be able to work
Send the screenshot of your wsgi.py file
On Tuesday, 4 August 2020 05:47:29 UTC+1, Phan Nguyen wrote:
>
>
>
> On Tuesday, August 4, 2020 at 11:42:32 AM UTC+7, Phan Nguyen wrote:
>>
>> *So I was be able to work with Django very well the past weeks. But
>> certainly, I manually moved a 'src' folde
On Tuesday, August 4, 2020 at 11:42:32 AM UTC+7, Phan Nguyen wrote:
>
> *So I was be able to work with Django very well the past weeks. But
> certainly, I manually moved a 'src' folder(contain manage.py) which is
> originally in a Dev folder, to another folder where I write all the code of
> h
1 - 100 of 672 matches
Mail list logo