t; hello sir, Did you add the apps in the setting.py file?
>>
>> On Tue, 21 Mar, 2023, 9:23 pm Vairamuthu Puvanachandran, <
>> vai@gmail.com> wrote:
>>
>>> I am 76 yr old retired Engineer in Canada.
>>>
>>>
>>>
>>> I a
> hello sir, Did you add the apps in the setting.py file?
>
> On Tue, 21 Mar, 2023, 9:23 pm Vairamuthu Puvanachandran, <
> vai@gmail.com> wrote:
>
>> I am 76 yr old retired Engineer in Canada.
>>
>>
>>
>> I am new to Python and Django.
>&g
Hi Vairam
What exactly you are stuck with?
Regards
Yash
On Tue, Mar 21, 2023 at 9:23 PM Vairamuthu Puvanachandran <
vai.pu...@gmail.com> wrote:
> I am 76 yr old retired Engineer in Canada.
>
>
>
> I am new to Python and Django.
>
>
>
> I was looking for help an
Your attached pictures are not clear
On Tue, Mar 21, 2023, 16:53 Vairamuthu Puvanachandran
wrote:
> I am 76 yr old retired Engineer in Canada.
>
>
>
> I am new to Python and Django.
>
>
>
> I was looking for help and I found your site.
>
>
>
> I am stuck
>
>> I am 76 yr old retired Engineer in Canada.
>>
>>
>>
>> I am new to Python and Django.
>>
>>
>>
>> I was looking for help and I found your site.
>>
>>
>>
>> I am stuck now.
>>
>>
>>
>> I followed
d I found your site.
>
>
>
> I am stuck now.
>
>
>
> I followed the “polls.app” tutorial and had the “Hello welcome .. page
> under the project directory “mysite”.
>
>
>
> Previously I had two applications in a different project name.
>
>
>
> I added
@gmail.com
http://ryucoder.in
On Wed, Mar 15, 2023 at 1:14 AM Sandip Bhattacharya <
sand...@showmethesource.org> wrote:
> Can you share your urls.py?
>
>
> On Mar 14, 2023, at 1:33 AM, Nithin Kumar wrote:
>
> Hi,
>
> Stuck with this problem
>
> https://
x27;, views.ResultsView.as_view(), name='results'),
path('/vote/', views.vote, name='vote'),
]
On Tue, Mar 14, 2023 at 3:44 PM Sandip Bhattacharya <
sand...@showmethesource.org> wrote:
> Can you share your urls.py?
>
>
> On Mar 14, 2023, at 1:33
t; def vote(request, question_id):
> return HttpResponse("You're voting on question %s." % question_id)
>
>
>
>
>
> On Tuesday, March 14, 2023 at 1:22:25 PM UTC-4 Prosper Lekia wrote:
>
>> Let's see your views.
>>
>> On Tue, Mar 14,
on %s." % question_id)
>
>
>
>
>
>On Tuesday, March 14, 2023 at 1:22:25 PM UTC-4 Prosper Lekia wrote:
>
>> Let's see your views.
>>
>> On Tue, Mar 14, 2023, 14:32 Muhammad Juwaini Abdul Rahman <
>> juw...@gmail.com> wrote:
>>
>>>
Can you share your urls.py?
> On Mar 14, 2023, at 1:33 AM, Nithin Kumar wrote:
>
> Hi,
>
> Stuck with this problem
>
> https://docs.djangoproject.com/en/4.1/intro/tutorial04/
>
> NoReverseMatch at /polls/2/Reverse for 'vote' with arguments '(2,)&
27;re voting on question %s." % question_id)
On Tuesday, March 14, 2023 at 1:22:25 PM UTC-4 Prosper Lekia wrote:
> Let's see your views.
>
> On Tue, Mar 14, 2023, 14:32 Muhammad Juwaini Abdul Rahman <
> juw...@gmail.com> wrote:
>
>> q
Let's see your views.
On Tue, Mar 14, 2023, 14:32 Muhammad Juwaini Abdul Rahman
wrote:
> question_id=question.id
>
> On Tue, 14 Mar 2023 at 21:22, Nithin Kumar
> wrote:
>
>> Hi,
>>
>> Stuck with this problem
>>
>> https://docs.djangoproject.co
question_id=question.id
On Tue, 14 Mar 2023 at 21:22, Nithin Kumar wrote:
> Hi,
>
> Stuck with this problem
>
> https://docs.djangoproject.com/en/4.1/intro/tutorial04/
>
> NoReverseMatch at /polls/2/Reverse for 'vote' with arguments '(2,)' not
&
Hi,
Stuck with this problem
https://docs.djangoproject.com/en/4.1/intro/tutorial04/
NoReverseMatch at /polls/2/Reverse for 'vote' with arguments '(2,)' not
found. 1 pattern(s) tried: ['polls/
{% csrf_token %}
{{ question.question_text }}
On 28/12/2022 20.21, Music Fm wrote:
hi guys, so i am building a payment gate way using django but i am stuck
on how to integrate cards in the views for the form. please i need help
Which kind of help do you think anyone will be able to provide when you
haven't given any information a
hi guys, so i am building a payment gate way using django but i am stuck on
how to integrate cards in the views for the form. please i need help
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop
Cd comand and app name..
On Mon, Mar 28, 2022, 11:57 Samapika Nayak
wrote:
> you need to configure the media files in settings.py
> MEDIA_URL = "/media/"
> MEDIA_ROOT = BASE_DIR / "media"
> also need to configure it in project level urls.py
>
> if settings.DEBUG:
> urlpatterns += static(settings
You don’t have default.jpg in your media folder. Add jpg image named
default in the media folder.
On Mon, Mar 28, 2022 at 5:34 AM 'Delvin Alexander' via Django users <
django-users@googlegroups.com> wrote:
> Hello everyone,
>
> I am trying to register a new user by watching the Django tutorial. I
you need to configure the media files in settings.py
MEDIA_URL = "/media/"
MEDIA_ROOT = BASE_DIR / "media"
also need to configure it in project level urls.py
if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
On Mon, Mar 28, 2022 at 10:04 AM 'Delvin Al
Hello everyone,
I am trying to register a new user by watching the Django tutorial. I have
created the new user but upon attempting to log the new user in I get an,
*"FileNotFoundError at /login/[Errno 2] No such file or directory:
'C:\\Users\\delvi\\django_project\\media\\default.jpg'"*
But
I have sent you an invitation
On Wed, Jan 19, 2022 at 9:54 AM Vkash Poudel
wrote:
> can we connect via email so that i can share my codes regarding Time basis
> OTP Generation and OTP Verification and activate user's account using pyotp.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
yeah sure
On Wed, Jan 19, 2022 at 9:54 AM Vkash Poudel
wrote:
> can we connect via email so that i can share my codes regarding Time basis
> OTP Generation and OTP Verification and activate user's account using pyotp.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
can we connect via email so that i can share my codes regarding Time basis
OTP Generation and OTP Verification and activate user's account using pyotp.
I have not used any library. I have done manual OTP verification by using
Rand library as told in the tutorial.
On Tue, Jan 18, 2022 at 9:00 PM Vkash Poudel
wrote:
> first of what did you use to generate otp. If you've used pyotp libraries
> then you can verify otp in simple step and the documen
I have changed the code as you suggested.
def OTPverify(request):
if request.method == 'POST':
email = request.POST.*get*['email']
otp = request.POST.*get*['otp']
But now it gives another error,
[image: image.png]
On Tue, Jan 18, 2022 at 10:10 PM Bernard Mallala
wrote:
Hello my friend
Sesh, 18-yan, 2022, 7:50 TK Leo guitar girl :
> I am following the tutorial from LearnVern.com
>
>
> https://www.learnvern.com/python-tutorial-django/project-implementation-part2
>
> I have followed ditto as taught in the tutorial but the trainer has no
> issue and I have this iss
Hi,
Hope you are well
Did you successfully find the bug or not
here is my whatsapp number
You can contact here
923158090326
Thanks
On Tue, Jan 18, 2022 at 8:32 AM Leo guitar girl
wrote:
> Oh, I apologize. I had pasted the error code here don't know why it was
> not sent.
> Actually, I am tr
In your model, be sure to address defaults and required values such that
something is passed or be user to validate.
Replace
request.POST['']
With
request.POST.get('')
For example request.POST['otp']
TO
request.POST.get['otp']
On Tuesday, January 18, 2022 at 9:00:41 AM UTC-7 bikash...@g
first of what did you use to generate otp. If you've used pyotp libraries
then you can verify otp in simple step and the documentation is good in
pyotp.
On Tue, Jan 18, 2022 at 8:35 PM Leo guitar girl
wrote:
> I am following the tutorial from LearnVern.com
>
>
> https://www.learnvern.com/python-
I am following the tutorial from LearnVern.com
https://www.learnvern.com/python-tutorial-django/project-implementation-part2
I have followed ditto as taught in the tutorial but the trainer has no
issue and I have this issue.
I am sharing the views.py code also
from django.shortcuts import rende
On 18/01/2022 04.31, Leo guitar girl wrote:
Oh, I apologize. I had pasted the error code here don't know why it was
not sent.
Actually, I am trying to create a job portal by seeing a tutorial. Now I
am at the step of verifying OTP. OTP is generated successfully in the
database. But when I enter
On 16/01/2022 11.03, Leo guitar girl wrote:
*This is the error I am getting at OTP verification step. Please guide
me where I am wrong. *
*
No one here would have any idea what "OTP verification step" you are
talking about.
You haven't written anything about what you are trying to achieve
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/otp/
Django Version: 4.0.1
Python Version: 3.9.9
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.
Dear MH,
I also stuck here.
When I run *~*# python3 -m pip install mod-wsgi
I got the same error message: RuntimeError: The 'apxs' command appears not
to be installed or is not executable. Please check the list of
prerequisites in the documentation for this package and install a
Hi,
This is my second request regarding the same issue. I've been building a
Django E-commerce website and I'm facing problems filtering the product
according to price. I used django-filter to filter category and size.
Please suggest a solution for price in the following manner: Latest
products, Lo
Please anyone can solve this for me Stackoverflow link-https://stackoverflow.com/questions/65493274/how-to-get-data-from-different-table-using-ajax-in-form-of-checkbox-in-django
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe f
Hi Eankomah,
You have several solution depending upon your need:
> Le mercredi 23 septembre 2020 07:24:05 UTC+2, eankomah a écrit :
> Hi all am stuck at getting total_price Calculated in my model
>
> class inventory(models.Model):
> def __str__(self):
>
Hi Eankomah,
You have several solutions depending upon your need:
*>Le mercredi 23 septembre 2020 07:24:05 UTC+2, eankomah a écrit :*
*>Hi all am stuck at getting total_price Calculated in my model*
*>*
*>class inventory(models.Model):*
*>def __str__(self):*
*>
Hi Harish,
On 23/09/2020 11.27, Harish Thiyagharajan wrote:
I think you mailed me instead of mailing someone
No. If you look at the mail header, you can see this was sent to the
django-users mailing list.
Kind regards,
Kasper Laudrup
--
You received this message because you are subscribe
I think you mailed me instead of mailing someone
On Wed, Sep 23, 2020 at 2:47 PM Kasper Laudrup
wrote:
> Hi eankomah,
>
> Completely unrelated, but:> unit_price = models.FloatField()
> Don't use floats for money. It will give you all kinds of problems with
> rounding errors etc.
>
> Assumin
Hi eankomah,
Completely unrelated, but:> unit_price = models.FloatField()
Don't use floats for money. It will give you all kinds of problems with
rounding errors etc.
Assuming this is just a hobby project, it's probably fine, but otherwise
consider looking into something like:
https://
hi there you can create another method for that class that calculates the
total as
@property
def get_total_price(self):
total_price = self.unit_price * self.quantity
return total_price
On Wed, Sep 23, 2020 at 8:24 AM eankomah wrote:
> Hi all am stuck at getting total_pr
Hi all am stuck at getting total_price Calculated in my model
class inventory(models.Model):
def __str__(self):
return self.name
category = models.ForeignKey(Category, null=True, on_delete =
models.SET_NULL)
Supplier = models.ForeignKey(Supplier, null=True, on_delete
😂😂
On Mon, Sep 21, 2020 at 7:04 PM Shahprogrammer wrote:
> That's not the problem with installation of Django it's with your urls
>
> On Monday, 21 September, 2020 at 6:49:56 pm UTC+5:30 kashubh...@gmail.com
> wrote:
>
>> [image: Screenshot (418).png]
>>
> --
> You received this message because
That's not the problem with installation of Django it's with your urls
On Monday, 21 September, 2020 at 6:49:56 pm UTC+5:30 kashubh...@gmail.com
wrote:
> [image: Screenshot (418).png]
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsub
[image: Screenshot (418).png]
--
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit
I followed the instructions on installing django here:
>>> https://docs.djangoproject.com/en/3.0/intro/install/ and here:
>>> https://docs.djangoproject.com/en/3.0/intro/tutorial01/
>>>
>>> But I have encountered multiple problems and am stuck.
>>>
>&
Rodolphe Gohard >:
>
>> Hello, I am wanting to create a django project.
>>
>> I followed the instructions on installing django here:
>> https://docs.djangoproject.com/en/3.0/intro/install/ and here:
>> https://docs.djangoproject.com/en/3.0/intro/tutorial01/
>
have encountered multiple problems and am stuck.
>
>
> My env:
> Ubuntu on WSL
> python 2.7
> python 3.5.2
>
>
> Here is the steps I took so far:
>
> # create the venv
> sudo apt-get install python3-venv
> python3 -m venv pythonenv
> source ./python
:
> https://docs.djangoproject.com/en/3.0/intro/install/ and here:
> https://docs.djangoproject.com/en/3.0/intro/tutorial01/
>
> But I have encountered multiple problems and am stuck.
>
>
> My env:
> Ubuntu on WSL
> python 2.7
> python 3.5.2
>
>
> Here is the steps I took so f
phe Gohard :
> Hello, I am wanting to create a django project.
>
> I followed the instructions on installing django here:
> https://docs.djangoproject.com/en/3.0/intro/install/ and here:
> https://docs.djangoproject.com/en/3.0/intro/tutorial01/
>
> But I have encountered multiple prob
Hello, I am wanting to create a django project.
I followed the instructions on installing django here:
https://docs.djangoproject.com/en/3.0/intro/install/ and here:
https://docs.djangoproject.com/en/3.0/intro/tutorial01/
But I have encountered multiple problems and am stuck.
My env:
Ubuntu
Reach out to me privately, I'll assist you further.
On Fri, Mar 6, 2020 at 12:32 AM 'MH' via Django users <
django-users@googlegroups.com> wrote:
> Dear Omar
>
> Finally I figured out, which of my gunicorn versions belonged to the right
> python3 that I invoked earlier. Now it seems to start. I w
Dear Omar
Finally I figured out, which of my gunicorn versions belonged to the right
python3 that I invoked earlier. Now it seems to start. I write seems
because in the browser it now immediately gives me an error that it cannot
find a certain module "docx". I will come back to that in a differ
kontaktujte a prenastavim pravidla přístupu. Přeji hezký den s pozdravem Vasek JachimOdesláno z mého telefonu Huawei Původní zpráva Předmět: Re: Stuck with Django on a Synology DiskstationOdesílatel: 'MH' via Django users Komu: Django users Kopie: Is there anything particular hat
If I am not totally mistaken it could be that gunicorn wants to work with
python2.7 while I did everything with python3. But how could I direct
gunicorn to take python3?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this
Make sure you're in the root of the project and run:
gunicorn -w 4 project.wsgi:application
you dont need to change anything.
On Thu, Mar 5, 2020, 10:51 PM 'MH' via Django users <
django-users@googlegroups.com> wrote:
> Is there anything particular hat I have to write into that wsgi.py file?
>
Is there anything particular hat I have to write into that wsgi.py file?
--
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+unsubscr...@googlegroups.co
Dear Omar
but would that help me right now? Besides the problem of finding the right
pip, I mean? As you can see, even now my gunicorn won't work :(
On Thursday, March 5, 2020 at 4:04:46 PM UTC+1, Omar Abou Mrad wrote:
>
> As of Python 3.3 virtual environments are builtin, it would be wise to
gunicorn -w 4 wsgi:application
[2020-03-05 15:55:51 +] [4472] [INFO] Starting gunicorn 19.9.0
[2020-03-05 15:55:51 +] [4472] [INFO] Listening at: http://127.0.0.1:8000
(4472)
[2020-03-05 15:55:51 +] [4472] [INFO] Using worker: sync
[2020-03-05 15:55:51 +] [4483] [INFO] Booting wor
As of Python 3.3 virtual environments are builtin, it would be wise to get
used to them.
https://docs.python.org/3/library/venv.html
On Thu, Mar 5, 2020 at 4:57 PM 'MH' via Django users <
django-users@googlegroups.com> wrote:
> /volume1/@appstore/py3k/usr/local/bin$ ./pip install gunicorn
> Defa
/volume1/@appstore/py3k/usr/local/bin$ ./pip install gunicorn
Defaulting to user installation because normal site-packages is not
writeable
Requirement already satisfied: gunicorn in /volume1/homes/admin/.local/lib/
python3.5/site-packages (20.0.4)
Requirement already satisfied: setuptools>=3.0 in
To be quite honest, this is really challenging for me, because the synology
OS drove me nuts. I am under the impression that I have multiple
installations of python and pip running now.
In order to get an overview, I will now try to find every pip on my system
and to install gunicorn everywher
gunicorn is yielding the same error as the standard python command I gave
you,
whereas you use python3 to fire up the django development server. I'll
venture
a guess and say the problem is due to the environment.
Are you using any virtual environment or installing system wide?
How did you install
Dear Omar
python -c "import django.core.wsgi" && echo "Yup, works!"
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named django.core.wsgi
but
python3 manage.py runserver 0:8000
Watching for file changes with StatReloader
Performing system checks...
System check
Is django installed properly?
Are you still able to use runserver?
What happens when you run the following?
python -c "import django.core.wsgi" && echo "Yup, works!"
also, looking further into your error log, make sure you're in the proper
directory.
(i may have given you the wrong one earlier, r
Somehow I cannot write everything into one post that I wanted to reply.
Here comes the rest of my original post.
gunicorn -w 4 wsgi:application
[... continued ...]
Traceback (most recent call last):
File "/opt/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583, in
spawn_worker
File
Thanks Omar,
but do I have to write something into that wsgi file?
gunicorn -w 4 wsgi:application
[2020-03-05 12:55:09 +] [29297] [INFO] Starting gunicorn 19.9.0
[2020-03-05 12:55:09 +] [29297] [INFO] Listening at: http://127.0.0.1:8000
(29297)
[2020-03-05 12:55:09 +] [29297] [INFO]
Thanks Omar,
but do I have to write something into that wsgi file?
gunicorn -w 4 wsgi:application
[2020-03-05 12:55:09 +] [29297] [INFO] Starting gunicorn 19.9.0
[2020-03-05 12:55:09 +] [29297] [INFO] Listening at: http://127.0.0.1:8000
(29297)
[2020-03-05 12:55:09 +] [29297] [INFO]
Change your working directory to "project" (the directory containing
wsgi.py) and use:
gunicorn -w 4 wsgi:application
It should work.
On Thu, Mar 5, 2020 at 10:14 AM 'MH' via Django users <
django-users@googlegroups.com> wrote:
> Could anyone tell me how to start correctly the unicorn (integra
Could anyone tell me how to start correctly the unicorn (integration)?
--
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+unsubscr...@googlegroups.com.
Hi Omar
Actually I do not know why apache is better than the development webserver
from django or gunicorn, but I wanted to give it a try. The installation
worked.
Now I am not sure what I am doing wrong:
gunicorn project/wsgi.py:application
[2020-03-04 13:46:26 +] [28939] [INFO] Starting
[Alternative] While this shouldn't be considered as a way to circumvent
learning how to
configure apache or nginx to serve/proxy python apps, you can also consider
sticking
to pure python dependencies (if this is for personal use). you can ignore
the webserver
completely and simply opt for [1] guni
Dear Andreas
I want to build a little system, which consists of several django apps that
help me in my daily life. But I don't want to upload documents about
insurances and stuff to any cloud. Therefore I wanted a solution on premise
and the NAS seemed to be a good choice. Could be wrong about
Dear nitish
Thanks for your reply. I guess it is kind of a linux that Synology uses,
but it is different from other distros. So many advice on the internet
builds upon the ability to install packages via apt-get or ipkg, but both
are not available here. Somehow (really only somehow) I got entwa
Hi,
I don't think this is actually possible. Django runs python and not only
simple html. Nginx and apache are simple webservers. So unless you can get
good access to the terminal on the diskstation - I wouldn't even try this.
Why do you want to have the application running on a disk station?
Reg
Hi MH,
what flavour of Linux you are using. if it is centos/redhat you can use
below steps.
$sudo yum install httpd24-devel.x86_64 gcc git
$sudo python3.5 -m pip install mod-wsgi
once installed you need to add site configuration and permissions to your
Django code.
$ cd ~/django_a
Hi there
I am rather a newbie, but after some problems I got django installed on my
Synology Diskstation. So, I ignored many other problems and am very happy
that I built my very first, very simple app. And now I would like to move
it from the development stage to the production stage. Obviousl
In my admin I have a section for editing products and for each product has
a one to many of sample images. I wanted to display the image for convience
in my StackedInline for the sample images. However after setting everything
up to display the sample image, I am still getting an internal error
really your question is not clear ,
what is the error message you got from debugger ??
On Wed, Jan 23, 2019 at 9:29 AM Anirudh Jain
wrote:
> First of all you can remove 'PORT'. Then the most important thing to do is
> to grant your user privileges to perform operations on mysql database that
>
First of all you can remove 'PORT'. Then the most important thing to do is
to grant your user privileges to perform operations on mysql database that
you must have created by the name 'urbanpyt_polls'. The easiest way to do
is to run this query on mysql : GRANT ALL PRIVILEGES ON *.* TO
'username'@'
has anyone ever install the django on a live web hosting service? if so
when it comes to using db is the db virtual just like djangoEnv or do i use
the mysql thats on my host? i have a vsp??
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To u
all tutorials ive seen is in the view of someone doing it on a home pc
how can i connect to mysql thats already on my vps server. its with centos
linx
im following this tutorial
https://docs.djangoproject.com/en/2.0/intro/tutorial02/
what I altered below:
DATABASES = {
'default': {
seconds.
But in production, the migration stuck for more than 20 minutes and we have
to kill it.
The only difference between our sandbox and production system is that in
the production we have postres replication.
To test more the problem, I added a postgres replica in sandbox and it also
hey Dylan, two days ago anthony said to troubleshoot myself, the answer was
there only.Since i am a beginer i tried myself but couldn't find out the
error also i was tired as i just reached from office and started questioning
On Friday, May 11, 2018 at 11:19:43 PM UTC+5:30, Dylan Reinhold wrote:
Is it grounds hogs day, didn't this exact error get asked two days ago and
Daniel answered then?
On Fri, May 11, 2018 at 10:40 AM, Daniel Hepper
wrote:
> The error message is a hint that Django is not properly initialized.
>
> My guess is that you are using a plain python shell, which you starte
ok ok i got it thanks
On Friday, May 11, 2018 at 11:11:00 PM UTC+5:30, Daniel Hepper wrote:
>
> The error message is a hint that Django is not properly initialized.
>
> My guess is that you are using a plain python shell, which you started
> using the command „python“.
>
> Use „python manage.py s
i wrote the code inside mysite directory but still the error shows
On Friday, May 11, 2018 at 11:11:00 PM UTC+5:30, Daniel Hepper wrote:
>
> The error message is a hint that Django is not properly initialized.
>
> My guess is that you are using a plain python shell, which you started
> using the
The error message is a hint that Django is not properly initialized.
My guess is that you are using a plain python shell, which you started using
the command „python“.
Use „python manage.py shell“ instead. As explained in part 2 of the tutorial,
this properly initializes Django.
Hope that help
Exceptions:
Type "help", "copyright", "credits" or "license" for more information.
>>> import datetime
>>> from django.utils import timezone
>>> from polls.models import Question
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\AVITABAYAN\mysite\polls\models.py", line 7,
Sharing the contents of polls/urls.py could help but I assume you didn't
make any errors on the first line. To be sure, you can add a comment on the
first line and leave the second line blank.
If you still have an error on line 1, it might be related to how you save
your file. Python might not like
There is some syntax error in the file. Please ensure that your file is
following python syntax. I hope you know basics of python.
On Wed, 01 Feb 2017 13:17:39 +0530 Zhou Sicong
wrote
Hi,
I tried doing exactly everything as told in Tutorial 1
(http
Hi,
I tried doing exactly everything as told in Tutorial 1 (
https://docs.djangoproject.com/en/1.10/intro/tutorial01/)
I use idle to write the polls.py and urls.py
Do i totally overwrite the code already in those file or leave them alone
and add on the codes in the tutorial.
Because i alw
wrote:
>
>> Hello,
>>
>> I'm enjoying the tutorial and now I'm stuck on the second page (writing
>> your first Django app part 2), shortly after this paragraph.
>>
>> 'It’s important to add __str__()
>> <https://docs.djangoproject.com/en/
What is the definition of your __str__() method?
On Thu, Jun 9, 2016 at 4:11 PM, Neil Hunt wrote:
> Hello,
>
> I'm enjoying the tutorial and now I'm stuck on the second page (writing
> your first Django app part 2), shortly after this paragraph.
>
> 'It’s im
Hello,
I'm enjoying the tutorial and now I'm stuck on the second page (writing
your first Django app part 2), shortly after this paragraph.
'It’s important to add __str__()
<https://docs.djangoproject.com/en/1.9/ref/models/instances/#django.db.models.Model.__str__>
m
Ty Aeron I will check it out.
--
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+unsubscr...@googlegroups.com.
To post to this group, send email to dja
ling
On Tuesday, April 26, 2016 at 12:33:09 AM UTC-7, Cronos Cto wrote:
>
>
> Hello Django Lovers.
>
> So I started on Django as project of mine. Seems like a great first
> framework to start on. At the moment I am stuck at this:
>
>
>
> <https://lh3.googleuserconte
I just did another try with a different version of Django which is same
version of Django used in the book I am reading.
It turns out where the project(mysite) saved has no effect on it. I think
it's how Django suppose to behave.
Perhaps you are not working with the same version of Django as the
1 - 100 of 310 matches
Mail list logo