Re: Stuck with Django

2023-03-21 Thread Jeman Kumar
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

Re: Stuck with Django

2023-03-21 Thread Vairamuthu Puvanachandran
> 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

Re: Stuck with Django

2023-03-21 Thread yash thadani
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

Re: Stuck with Django

2023-03-21 Thread Abdulrahman Abbas
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

Re: Stuck with Django

2023-03-21 Thread Jeman Kumar
> >> 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

Re: Stuck with Django

2023-03-21 Thread Jeman Kumar
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

Re: Stuck with Django Tutorial Part 4

2023-03-15 Thread Chetan Ganji
@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://

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Nithin Kumar
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

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Prosper Lekia
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,

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Brian Carey
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: >> >>>

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Sandip Bhattacharya
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,)&

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Nithin Kumar
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

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Prosper Lekia
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

Re: Stuck with Django Tutorial Part 4

2023-03-14 Thread Muhammad Juwaini Abdul Rahman
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 &

Stuck with Django Tutorial Part 4

2023-03-14 Thread Nithin Kumar
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 }}

Re: stuck in my payment gateway

2022-12-28 Thread 'Kasper Laudrup' via Django users
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

stuck in my payment gateway

2022-12-28 Thread Music Fm
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

Re: Stuck

2022-03-28 Thread rahul sharma
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

Re: Stuck

2022-03-28 Thread Kelvin Sajere
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

Re: Stuck

2022-03-27 Thread Samapika Nayak
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

Stuck

2022-03-27 Thread 'Delvin Alexander' via Django users
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

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-19 Thread Leo guitar girl
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. > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-19 Thread Leo guitar girl
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. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Vkash Poudel
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.

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Leo guitar girl
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

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Leo guitar girl
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:

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Jasur Suyunov
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

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Abubakar Siddique
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

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Bernard Mallala
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

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Vkash Poudel
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-

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread 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 issue. I am sharing the views.py code also from django.shortcuts import rende

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-18 Thread Kasper Laudrup
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

Re: Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-16 Thread Kasper Laudrup
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

Hi, I am learning Django, I am stuck at one place and can't over come after many days

2022-01-16 Thread Leo guitar girl
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.

Re: Stuck with Django on a Synology Diskstation

2021-07-14 Thread Tony Chang
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

In need of urgent help as I've been stuck on this for a while

2021-06-24 Thread Aritra Ray
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

I have been stuck for Django checkbox

2020-12-29 Thread ok
 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

Re: Stuck with Calculated feild

2020-09-25 Thread Frederic Salvetat
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): >

Re: Stuck with Calculated feild

2020-09-25 Thread Frederic Salvetat
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):* *>

Re: Stuck with Calculated feild

2020-09-23 Thread Kasper Laudrup
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

Re: Stuck with Calculated feild

2020-09-23 Thread Harish Thiyagharajan
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

Re: Stuck with Calculated feild

2020-09-23 Thread Kasper Laudrup
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://

Re: Stuck with Calculated feild

2020-09-22 Thread dr neyx de godlove
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

Stuck with Calculated feild

2020-09-22 Thread eankomah
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

Re: I am stuck at "Installing Django on PythonAnywhere" can anyone help me ?

2020-09-21 Thread Mohammad Ahshan Danish
😂😂 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

Re: I am stuck at "Installing Django on PythonAnywhere" can anyone help me ?

2020-09-21 Thread Shahprogrammer
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

I am stuck at "Installing Django on PythonAnywhere" can anyone help me ?

2020-09-21 Thread Kashu Bhattarai
[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

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Andréas Kühne
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. >>> >&

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Rodolphe Gohard
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/ >

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Akinfolarin Stephen
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

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Bruno Santos
: > 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

Re: Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread Andréas Kühne
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

Creating a new Django project, Stuck with the very first steps

2020-03-24 Thread 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/ But I have encountered multiple problems and am stuck. My env: Ubuntu

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread Omar Abou Mrad
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread V. J
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread Omar Abou Mrad
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? >

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread Omar Abou Mrad
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
/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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread Omar Abou Mrad
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread Omar Abou Mrad
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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]

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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]

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread Omar Abou Mrad
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

Re: Stuck with Django on a Synology Diskstation

2020-03-05 Thread 'MH' via Django users
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.

Re: Stuck with Django on a Synology Diskstation

2020-03-04 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-03 Thread Omar Abou Mrad
[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

Re: Stuck with Django on a Synology Diskstation

2020-03-03 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-03 Thread 'MH' via Django users
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

Re: Stuck with Django on a Synology Diskstation

2020-03-03 Thread Andréas Kühne
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

Re: Stuck with Django on a Synology Diskstation

2020-03-02 Thread nitish kumar
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

Stuck with Django on a Synology Diskstation

2020-03-02 Thread 'MH' via Django users
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

Stuck trying to add an image display to admin

2019-12-11 Thread Joel Ricker
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

Re: Poll Tutorial: I'm stuck I have mysql on my vps I created the database

2019-01-23 Thread Motaz Hejaze
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 >

Re: Poll Tutorial: I'm stuck I have mysql on my vps I created the database

2019-01-22 Thread Anirudh Jain
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'@'

Re: Poll Tutorial: I'm stuck I have mysql on my vps I created the database

2019-01-22 Thread RETAIL CYBER
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

Poll Tutorial: I'm stuck I have mysql on my vps I created the database

2019-01-22 Thread RETAIL CYBER
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': {

Migration stuck when running schema migration + data migration in the same migration file with postgres replication

2019-01-08 Thread Marcelo Theodoro
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

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Avitab Ayan Sarmah
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:

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Dylan Reinhold
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

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Avitab Ayan Sarmah
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

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Avitab Ayan Sarmah
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

Re: While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to reso

2018-05-11 Thread Daniel Hepper
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

While going through the django tutorial i stuck while writing a code i.e., automated test.And error is showing with some tracebacks.I tried to resolve the error but i failed.Please help me to resolve

2018-05-11 Thread Avitab Ayan Sarmah
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,

Re: Stuck at Tutorial 1

2017-02-01 Thread ludovic coues
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

Re: Stuck at Tutorial 1

2017-02-01 Thread Nibil M S
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

Stuck at Tutorial 1

2017-02-01 Thread Zhou Sicong
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

Re: Stuck on tutorial your first Django app part 2

2016-06-10 Thread 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 important to add __str__() >> <https://docs.djangoproject.com/en/

Re: Stuck on tutorial your first Django app part 2

2016-06-09 Thread Bill Freeman
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

Stuck on tutorial your first Django app part 2

2016-06-09 Thread Neil Hunt
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

Re: New to Django (stuck at the end of the tutorial)

2016-05-01 Thread Cronos Cto
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

Re: New to Django (stuck at the end of the tutorial)

2016-04-30 Thread Aaron Poncé
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

Re: New to Django (stuck at the end of the tutorial)

2016-04-29 Thread Mie Rex
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   2   3   4   >