Re: Cannot connect to 127.0.0.1 error

2017-11-02 Thread Jorge Gimeno
Check to see DATABASES is configured correctly in settings.py. An example of it looks like: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'myproject', 'USER': 'myprojectuser', 'PASSWORD': 'password', 'HOST': 'localhost',

Re: Django 2.0 released

2017-12-03 Thread Jorge Gimeno
If you use pipenv, it will do that for you. -Jorge On Dec 3, 2017 3:05 PM, "Simon Charette" wrote: > > My mistake? My "requirements.txt" file did not mention package versions. > > You should definitely make sure to lock/freeze your requirements to prevent > your application's behavior from chan

Re: What were your best resources in learning programming, python, ultimately django?

2018-04-09 Thread Jorge Gimeno
Team Treehouse was a great learning resource. It's paid, but I felt it was worth it. -Jorge L. Gimeno On Mon, Apr 9, 2018, 8:06 AM Amber Pond wrote: > What were your best resources in learning programming, python, ultimately > django? > > Hi friends! > > Just starting out with some basic html a

Re: Starting a poll

2018-05-24 Thread Jorge Gimeno
On Thu, May 24, 2018, 10:06 AM Caleb Bryson wrote: > So I am follow the instructions on the django site to make a poll. I am at > the current step where you run the server and everything went fine when i > typed in the command. But now it is just there at saying "GET /favicon.ico > HTTP/1.1" 404

Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-17 Thread Jorge Gimeno
I assume that's in Windows Powershell. I think it's .\Scripts\activate.bat I would also check to ensure that the Scripts folder exists in your current directory. -Jorge On Thu, Jan 17, 2019 at 11:18 AM Django Geek Aditya wrote: > Shell Output after entering command is > PS E:\todo> . \Scripts\

Re: Unit-Testing Django Views

2019-03-30 Thread Jorge Gimeno
The online version of the book is pinned to Django 1.11. You may want to check that out. -Jorge On Sat, Mar 30, 2019 at 4:40 AM Test Bot wrote: > Sorry for the bother but I finally solved it by using Django's Test Client > and checking for status_code and template used to render the response in

Re: Must be my and and can't be my code -- tracing back a URL pattern type mismatch

2019-03-30 Thread Jorge Gimeno
On Sat, Mar 30, 2019 at 7:31 PM Josh Marshall < joshua.r.marshall.1...@gmail.com> wrote: > I'm helping out on a project, but am running into a paradox of a bug must > existing in the code, but no project code is called. Not sure how to deal > with this one. It looks related to URL setup and the

Re: django-admin ...command error

2019-05-03 Thread Jorge Gimeno
This is a good case to use manage.py instead, as manage.py sets DJANGO_SETTINGS_MODULE. See here: https://docs.djangoproject.com/en/2.2/ref/django-admin/. -Jorge On Fri, May 3, 2019 at 12:41 PM Josiah Umezurike < pcintegral.pcintegr...@gmail.com> wrote: > I shows that there is a setting problem

Re: problems with mysql client

2019-05-11 Thread Jorge Gimeno
On Sat, May 11, 2019 at 8:16 AM Rob W wrote: > for my django project, we are using mysql. > > no matter how i try to install it, python-mysqldb, or just pip install > mysqlclient, it fails. > > i've installed mysqlconnector, i've tried everything. > > any suggestions ? > > > Collecting mysqlclien

Re: problems with mysql client

2019-05-11 Thread Jorge Gimeno
2019 at 9:04 AM Rob Gmail wrote: > Mac OS > > Rob > 203-671-6514 > Sent from my mobile device, please excuse the typos. > > On May 11, 2019, at 11:42 AM, Jorge Gimeno wrote: > > > > On Sat, May 11, 2019 at 8:16 AM Rob W wrote: > >> for my django proje

Re: How to proceed with my Pull request?

2019-05-12 Thread Jorge Gimeno
Mahdi, You may be waiting for a bit. As a general statement, package and framework maintainers are volunteers and tend to work on their projects around the other priorities in their lives. It's normal for a bit of a delay in getting something accepted. You can certainly contact the maintainer, b

Re: invalid literal for int() with base 10: ''

2019-06-21 Thread Jorge Gimeno
Would you be able to copy and paste the stack trace here? Without that, it's really hard to see where this exception is coming from. -Jorge On Fri, Jun 21, 2019 at 9:13 AM Lutalo Bbosa joseph wrote: > here is my template that handles that bit, and i have as well attached > atemplate in which it

Re: Unable to change db sqllite to mysql

2019-07-11 Thread Jorge Gimeno
On Thu, Jul 11, 2019 at 6:55 PM john samuel wrote: > Hi shreeram, > > But the fact is that i have changed the port number in xampp server for > mySQL as 3307. > > On Thu, Jul 11, 2019 at 9:19 PM SHREERAM KULKARNI < > shreeramvkulka...@gmail.com> wrote: > >> DATABASES = { >> 'default': { >>

Re: progress bar and upload big file and protect files

2020-03-04 Thread Jorge Gimeno
On Wed, Mar 4, 2020 at 8:40 AM Alaydyn Gholechragh wrote: > Hi > I search a lot in Google to find best methods for uploads big file with > progressbar to my site and i can't find any solution > And other things for protecting my file (zip or rar) from Anonymous user.. > Because I want to create a

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-05 Thread Jorge Gimeno
On Thu, Mar 5, 2020 at 6:04 PM Philip Means wrote: > I am new to web development. Wanted to help my daughter with a simple > website (she does pet portraits) and learn something that interests me. I > watched some you tube tutorials, then bought a book. First couple simple > projects went OK.

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-05 Thread Jorge Gimeno
I "runserver" >> (on page 55) I get a huge error dialog that seems to say that django can't >> find the app. I have deleted the project several times and re-entered it, >> so I think it is unlikely that it is a typing error. >> >> >> On Thu

Re: Beginner needs help getting templates to work - is this the right group?

2020-03-06 Thread Jorge Gimeno
>>> (on page 55) I get a huge error dialog that seems to say that django can't >>> find the app. I have deleted the project several times and re-entered it, >>> so I think it is unlikely that it is a typing error. >>> >>> >>> On Thu, Mar

Re: API documentation

2020-03-11 Thread Jorge Gimeno
On Wed, Mar 11, 2020, 2:03 PM Sunday Iyanu Ajayi wrote: > I am actually ask for API documentation tool that I can use to document my > API endpoints after building them using django rest framework > *AJAYI Sunday * > (+234) 806 771 5394 > *sunnexaj...@gmail.com * > > > > On Wed, Mar 11, 2020 at 1

Re: Error while hosting on heroku

2020-03-13 Thread Jorge Gimeno
if you used --app appname, then migrations didn't run. You can use 'heroku run python manage.py migrate blog' (without the single quotes) to migrate the blog app models, or 'heroku run python manage.py migrate' (again without single quotes) to migrate all the models in the project. -Jorge On Fri

Re: Error while hosting on heroku

2020-03-13 Thread Jorge Gimeno
Have you checked the logs to see what the command returns? -Jorge On Fri, Mar 13, 2020 at 11:34 AM shree hari wrote: > I tried that too. > Still its the same. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this gr

Re: I AM getting this error plss help me

2020-03-14 Thread Jorge Gimeno
Can you try closing the powershell, running the Powershell as an admin, then trying again? Another option would be to try from the command terminal instead of Powershell. Let us know how it goes. -Jorge On Sat, Mar 14, 2020 at 5:25 AM surendra ediga wrote: > Traceback (most recent call last):

Re: I AM getting this error plss help me

2020-03-16 Thread Jorge Gimeno
To be pedantic, the object is None. It's a known issue with Powershell on Windows. -Jorge. On Sun, Mar 15, 2020, 10:12 PM maninder singh Kumar < maninder.s.ku...@gmail.com> wrote: > The object is empty > > > [image: --] > > Maninder Kumar > [image: http://]about.me/maninder.s.kumar >

Re: Django framework on Windows OS

2020-03-17 Thread Jorge Gimeno
On Tue, Mar 17, 2020 at 6:34 PM chucks ogwo wrote: > Does anyone here use Django on windows? Cos I have been having a series of > errors since I started using Django on Windows, even while using the > windows commands and it has really stunted my learning process of the > framework > > -- > You r

Re: i'm having problems trying to add users to the admin on django for so long now that i haven't been able to learn much about django for months

2020-03-17 Thread Jorge Gimeno
On Tue, Mar 17, 2020 at 8:38 PM chucks ogwo wrote: > Environment: > > > Request Method: POST > Request URL: http://127.0.0.1:8000/admin/auth/user/1/change/ > > Django Version: 2.0.7 > Python Version: 3.8.2 > Installed Applications: > ['django.contrib.admin', > 'django.contrib.auth', > 'django.c

Re: error en ejercicio de principiante, no se que hacer

2020-03-29 Thread Jorge Gimeno
On Sat, Mar 28, 2020, 2:22 PM cosmos multi wrote: > Um pues la verdad te estas complicando demasiado solo configura los > archivos template en settings.py es lo que te recomiendo. > > El sáb., 28 mar. 2020, 4:18 p. m., Federico Gomez < > federicogome...@gmail.com> escribió: > >> saludos, tengo un

Re: travis sync issue to git with django project

2020-03-29 Thread Jorge Gimeno
On Sat, Mar 28, 2020 at 3:25 PM John McClain wrote: > My build keeps failing at this juncture > > 0.00s$ SECRET_KEY="whatever" ./manage.py test > 273/home/travis/.travis/functions: line 109: ./manage.py: Permission denied > 274The command "SECRET_KEY="whatever" ./manage.py test" exited with 126.

Re: Django form fields order

2020-04-10 Thread Jorge Gimeno
On Fri, Apr 10, 2020, 12:29 AM אורי wrote: > Hi, > > We are using Django 2.2 and I want to upgrade to Django 3.0. We have a > mixin (written in 2017) that add fields to forms: > > class LocalizedFirstLastNameMixin(object): > def __init__(self, *args, **kwargs): > self.language_code =

Re: Reg: Django signal not working

2020-04-19 Thread Jorge Gimeno
Amitesh, Where is User.profile defined? -Jorge On 4/18/20, Saurabh Ranjan Singh wrote: > I am having the same issue. Please fix it. > > On Friday, 17 April 2020 22:47:40 UTC+5:30, Amitesh Sahay wrote: >> >> Hi, >> >> I am creating a Django signup form through "User" model and >> "UserCreationFo

Re: Django Project Created in Pycharm using App Engine Does not include Django boiler files

2020-04-19 Thread Jorge Gimeno
I believe you can still install Django the old fashioned way into your virtual environment, i.e. (with your environment active, and from the command prompt): pip install django django-admin startproject test_project -Jorgge On 4/17/20, kelvin smith wrote: > Guys, I Just started using google clo

Re: Tutorial "Writing your first Django App": NoReverseMatch at /polls/ - down at the end of part 3

2020-04-19 Thread Jorge Gimeno
If settings.DEBUG == False, then you have to put the allowed addresses in settings.ALLOWED_HOSTS. If Debug is True, then I'm not sure what's going on. -Jorge On 4/18/20, Markus Grossniklaus wrote: > Thanks a lot Chucky! > No error message > displays at least one dot! fine > > http://127.0.0.1:8

Re: No Reverse Match Error, When creating a new user (new user application) it should direct back to home (to the core application)

2020-04-19 Thread Jorge Gimeno
I would try to replace return redirect('home') with return redirect(reverse('home')) -Jorge On 4/18/20, Motaz Hejaze wrote: > اعمل اسم الفانكشن الحقيقي مكان اسم ال url او استخدم redirect reverse > > On Sun, 19 Apr 2020, 6:35 am Ahmed Khairy, > wrote: > >> For this project, I have made 2 applica

Re: CSRF token still needed today?

2020-04-19 Thread Jorge Gimeno
On Sun, Apr 19, 2020 at 1:12 PM guettli wrote: > iI look at this page: https://docs.djangoproject.com/en/3.0/ref/csrf/ > ... and then I look at this page: https://scotthelme.co.uk/csrf-is-dead/ > > Is a CSRF token still needed today? > > All my users use a modern browser. > > It would be very nic

Re: Reg: Django signal not working

2020-04-22 Thread Jorge Gimeno
messages.success(request, f'Registration successful') > return redirect('home') > else: > messages.error(request, f'Please correct the error below.') > else: > form = SignUpForm() > cus_f

Re: django.urls.exceptions.NoReverseMatch: 'courses' is not a registered namespace

2020-04-23 Thread Jorge Gimeno
On Thu, Apr 23, 2020, 7:46 AM Bruno Gama wrote: > I have a problem since I tried to use get_absolute_url(self): to enter in > a url beyond a photo. When I used , my index.html stopped running. > > Here I have the top level url.py > > from import adminfrom django.urls import path, includefrom sim

Re: Problem with user.username

2020-04-23 Thread Jorge Gimeno
On Thu, Apr 23, 2020, 8:59 AM Bishop Akolgo wrote: > i have a similar problem. when i installed the env and django it did not > require me to create password but after successfully installing django and > trying to open admin, i need password and i cannot enter so i am stuck. > Can someone help

Re: Deploying Django Project on heroku

2020-04-25 Thread Jorge Gimeno
On Sat, Apr 25, 2020 at 7:13 AM Sunday Iyanu Ajayi wrote: > I have spent over 2weeks on deploying a django project to heroku but I > keep getting error messages such as : > > My WhiteNoise is not configured and I have followed all the tutorials > recommended and yet same thing. > > Please who h

Re: The database backend does not accept 0 as a value for AutoField.

2020-04-26 Thread Jorge Gimeno
On Sun, Apr 26, 2020 at 9:53 AM Antje Kazimiers wrote: > how about adding null=True and blank=True to the field? > On 4/26/20 6:38 PM, Mayur Bagul wrote: > > Hey thanks for your response i did so because initially at the time of > migration it was asking for default value and i just putted false

Re: I really need help pls assist this error

2020-04-30 Thread Jorge Gimeno
On Thu, Apr 30, 2020, 5:05 AM Listenable Music wrote: > 1st error in http://127.0.0.1:8000/ i dont know why I don't see any error > > Page not found (404) > Request Method: GET > Request URL: http://127.0.0.1:8000/ > > Using the URLconf defined in wisdompets.urls, Django tried these URL > pattern

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-02 Thread Jorge Gimeno
On Sat, May 2, 2020 at 7:43 AM Iain Stewart wrote: > Hi Folks, > > I am a learner and am enjoying learning Django so far (about a month in). > I am doing the Mosh Python Tutorial for Begnniners on You Tube and in > trying to save my first product on the Django admin/ products page and got > the f

Re: Making Serial number

2020-05-02 Thread Jorge Gimeno
On Sat, May 2, 2020 at 9:03 AM Kushal Neupane wrote: > How to make Serail Number 1, 2, 3 and respective in template? Help me. > Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving

Re: Making Serial number

2020-05-02 Thread Jorge Gimeno
On Sat, May 2, 2020 at 10:37 AM Kushal Neupane wrote: > Not primary key to use here. > There might be different data. > I am trying to do serial numbers as total numbers in the list. Thank you > > On Sat, May 2, 2020, 23:20 Jorge Gimeno wrote: > >> >> >> O

Re: OperationalError at /admin/login/attempt to write a readonly database

2020-05-02 Thread Jorge Gimeno
On Sat, May 2, 2020 at 8:09 PM Amina Anna Mahamane.O wrote: > Hello , I started learning how to use django . I made a project without a > virtual environnement and without apach2 andn mod wsgi . > Now am I trying to do a project with those ones . I am a beginner .When I > try to log in to the adm

Re: OperationalError at /admin/login/attempt to write a readonly database

2020-05-03 Thread Jorge Gimeno
ou're using sqlite3, which is file based) is named (without quotes) "db.sqlite3'. Hope this helps! -Jorge > > Envoyé de mon iPhone > > Le 3 mai 2020 à 05:21, Jorge Gimeno a écrit : > >  > > > On Sat, May 2, 2020 at 8:09 PM Amina Anna Mahamane.O &

Re: Form is not getting displayed on django admin page

2020-05-03 Thread Jorge Gimeno
On Sun, May 3, 2020 at 7:34 AM Vikram Jaiswal < vikramkumarjaiswal221...@gmail.com> wrote: > above is the image of the error > admin.py > from django.contrib import admin > from travello.models import Destination > > > > class ContactAdmin(admin.ModelAdmin): > Clist_display = [ 'name', 'department

Re: Form not visible on the add page

2020-05-03 Thread Jorge Gimeno
On Sun, May 3, 2020 at 7:34 AM Vikram Jaiswal < vikramkumarjaiswal221...@gmail.com> wrote: > I am not able to see the form on admin page to add the data > First > -First > -settings.py > -urls.py > -travello > -migrations > -urls.py >

Re: A learner following a Mosh Tutorial on Django and having a problem saving a product to SQLite

2020-05-03 Thread Jorge Gimeno
is means that the table is created sometimes >> this happens when you make changes to the model and don't run migrations. >> >> On Sat, May 2, 2020 at 10:33 PM Jorge Gimeno wrote: >> >>> >>> >>> On Sat, May 2, 2020 at 7:43 AM Iain Stewart wro

Re: Page 404 error after running Django server

2020-05-04 Thread Jorge Gimeno
I just realized that the view is returning an HttpRequest. It should be an HttpResponse object (and the import should be changed to bring that object in as well). -Jorge On Mon, May 4, 2020 at 11:43 AM Deepti sharma wrote: > @rdsaini...@gmail.com > I updated it with: path("welcome/",views.welc

Re: Best hosting for Django Application?

2020-05-05 Thread Jorge Gimeno
On Tue, May 5, 2020 at 10:36 AM JEGATHEESWARAN SUNDARAVADIVEL < jagatheesjo...@gmail.com> wrote: > You can check pythonanywhere hosting > > Thanks and regards > Jegatheeswaran > > On Tue, 5 May 2020 at 23:03, Sherif Adigun wrote: > >> I am planning to launch my first major Django application on a

Re: How to customize the authentication system?

2020-05-06 Thread Jorge Gimeno
On Wed, May 6, 2020, 3:08 AM Camilo Garcia wrote: > I want to use the authentication system that django comes with, but the > default model doesn't work for me, so I have to implement my own user > model, the truth is that I don't know how I could do it without losing the > power that this system

Re: Django Media Static Files

2020-05-06 Thread Jorge Gimeno
On Wed, May 6, 2020 at 3:09 AM ilda.pedro1993 wrote: > Hello, everyone! > My name is Ilda, i'm getting a page not found when trying to load django > media files. > > My django settings file looks like below: > > [image: Captura de Tela (148).png] > > > > > > > > And saw many suggestions to concat

Re: django.core.exceptions.ImproperlyConfigured: error is coming

2020-05-08 Thread Jorge Gimeno
On Fri, May 8, 2020 at 2:00 AM ratnadeep ray wrote: > I am new to Django and hence don't have much idea about it. I am trying to > create an app having the following contents in my view.py file: > > from django.shortcuts import render >> from fusioncharts.models import City >> def pie_chart(reque

Re: ModuleNotFoundError:

2020-05-08 Thread Jorge Gimeno
On Fri, May 8, 2020 at 5:12 PM nor sairi wrote: > AttributeError: module 'django.contrib' has no attribute 'gisproperty' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File > "/home/sairi/anaconda3/lib/python3.7/site-packages/dja

Re: Issue with Heroku Getting Started

2020-05-15 Thread Jorge Gimeno
On Thu, May 14, 2020 at 5:02 AM J Maryott wrote: > Wondering if anyone may be able to shed some light on this...I've cloned > the latest dev. version of Django from Git, and though I'm a bit of a > newbie here, and this might sound totally dumb to the professionals (I'm > unsure), I also tried

Re: Issue with Heroku Getting Started

2020-05-15 Thread Jorge Gimeno
Is this in a virtual environment? Are you using pipenv? -Jorge On Fri, May 15, 2020 at 1:24 PM J Maryott wrote: > C:\Users\jakem\python-getting-started>pip freeze > asgiref==3.2.7 > dj-database-url==0.5.0 > Django==3.0.6 > django-heroku==0.3.1 > django-utils==0.0.2 > gunicorn==20.0.4 > psycopg2

Re: Issue with Heroku Getting Started

2020-05-15 Thread Jorge Gimeno
On Fri, May 15, 2020 at 5:27 PM John McClain wrote: > try removing this > > django-utils==0.0.2 > > from requirements then run again to see next error > Good catch! I'll bet there's a name collision here. -Jorge -- You received this message because you are subscribed to the Google Groups "D

Re: Possible Bug? AttributeError: 'HttpResponse' object has no attribute '_resource_closers'

2020-05-16 Thread Jorge Gimeno
On Sat, May 16, 2020 at 12:06 PM Tim Allen wrote: > I posted this to Stack Overflow first, thinking it might be a problem with > `mod_wsgi`, but people using Gunicorn have seen the issue too. Here's a > link to the question on Stack Overflow: > > > https://stackoverflow.com/questions/61295971/dja

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread Jorge Gimeno
On Sat, May 16, 2020 at 1:52 PM chaitan wrote: > Hi, I am facing ModuleNotFoundError in my Django application. It got > configured with multiple settings files for production, Development & > Testing. > When I Try to run Python manage.py runserver --settings= settings_dev_sai. > > This is My *Set

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-16 Thread Jorge Gimeno
16, 2020 at 6:40 PM chaitanya orakala < > chaitu.orak...@gmail.com> wrote: > >> Yes Jorge, all the settings file are in the same folder >> >> >> On Sat, May 16, 2020 at 5:20 PM Jorge Gimeno >> wrote: >> >>> >>> >>> On Sa

Re: PROBLEM WITH Multiple SETTINGS.PY FILE

2020-05-19 Thread Jorge Gimeno
I'm not sure why you're getting an exception. I know the import mechanism in Python 2 was a bit different, so I'm not sure if that's the issue or if Django's import mechanism isn't finding your settings file. I don't know if you have tried this, but I saw a blog post on using multiple settings fi

Re: Reverse for 'display_data' not found. 'display_data' is not a valid view function or pattern name

2020-05-20 Thread Jorge Gimeno
On Tue, May 19, 2020 at 10:56 PM ratnadeep ray wrote: > Hi all, > > I am getting the below error when I am trying to load the home page: > Reverse for 'display_data' not found. 'display_data' is not a valid view > function or pattern name > > My views.py file is as follows: > > > >> def home(requ

Re: TypeError: __init__() got an unexpected keyword argument 'Null'

2020-05-20 Thread Jorge Gimeno
Similar to keys in a dictionary, keyword argument names are case sensitive. Try to pass in the lowercase version 'null': Raison_Non_Delivery_cd = models.ForeignKey(Raison, on_delete=models.CASCADE, related_name='raisonNonDelivery', null=True) -Jorge On Wed, May 20, 2020 at 5:05 PM hajar wr

Re: Command open postgresql in from cmd in windows

2020-05-30 Thread Jorge Gimeno
Postgres on Windows may have a different story and user interface. You may need to use something like pAdmin to work with it. -Jorge On Sat, May 30, 2020 at 10:20 AM sunday honesty wrote: > I have been in a message before I could successfully install postgresql on > my windows; it seems everyo

Re: Error on unauthorized access problem in django

2020-07-14 Thread Jorge Gimeno
django.contrib.staticfiles by design will serve static files only when debug is set to False. It's not designed to serve static files in a production environment. See here: https://docs.djangoproject.com/en/3.0/howto/static-files/deployment/ -Jorge On Mon, Jul 13, 2020 at 5:11 AM Anjana Balakr

Re: invalid literal for int() with base 10: ''

2018-07-25 Thread Jorge Gimeno
Can you please post your view? On Tue, Jul 24, 2018 at 9:02 PM, Nitesh Chaudhary wrote: > I got the error on "Writinh your first Django app, part4, in the view of > vote. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Jorge Gimeno
On Thu, Nov 29, 2018, 4:27 PM Scott Reed Hi, I'm starting the Django polls tutorial. > I've followed all the steps so far: installed Python and Django, set up > the virtual environment, etc. > I'm at the point where you start the Django development server by running > 'py manage.py runserver' in t

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Jorge Gimeno
On Thu, Nov 29, 2018, 9:40 PM Scott Reed Thanks for you response Jorge! I see, that's just to check that it > worked, and I'm supposed to quit the server to keep using the command > prompt. > Another question: I can't figure out the next step - opening the views.py > file in the command prompt. >

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Jorge Gimeno
We all were there once. Keep moving forward! -Jorge On Thu, Nov 29, 2018, 10:04 PM Scott Reed Thanks again Jorge! I'm such a noob :/ But this is a great learning > experience. > > On Thursday, November 29, 2018 at 9:55:00 PM UTC-8, jlgimeno71 wrote: >> >> >> >> On Thu, Nov 29, 2018, 9:40 PM Sc

Re: Was I supposed to be able to create a question on the website using 'runserver'?

2020-11-11 Thread Jorge Gimeno
That's a helper function to get the Question instances you need for testing. It's a way to query for those questions without repeating the same code over and over in tests. -Jorge On Wed, Nov 11, 2020 at 5:56 AM Carlos Henrique < carloshenrique...@poli.ufrj.br> wrote: > I'm following this >

Re: No ID Error

2020-11-11 Thread Jorge Gimeno
Without any more context, a Google search brought up this: https://stackoverflow.com/questions/55834107/django-template-library-invalidtemplatelibrary-invalid-template-library-specifi. Hopefully that is helpful. We would need the full trackback and the file where the error occurred to be able to o

Re: Django Queryset

2020-12-13 Thread Jorge Gimeno
On Sun, Dec 13, 2020 at 7:21 PM MAMADOU KANTE wrote: > Hi to everybody; > I have been trying to deploy an app through heroku for the past 7 days but > whenever I reach the final stage I receive a rejection message. > The message tells me the module "skbuild" was not imported or I should > upgrad

Re: setting up urls of many apps

2021-02-20 Thread Jorge Gimeno
On Wed, Feb 17, 2021 at 11:00 PM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > > Please follow these docs > https://docs.djangoproject.com/en/3.1/ref/urls/#include > > On Thu, Feb 18, 2021 at 12:12 PM Peter Kirieny > wrote: > >> if self.pattern.name is not None and ":" in sel

Re: Django Project Server not starting when running on linux server but running on local windows desktop

2019-07-26 Thread Jorge Gimeno
What version of Django are you running? On Fri, Jul 26, 2019, 7:34 AM abhijithez wrote: > Hi All, > > I have created a Django Project that is working fine on local desktop but > when I am starting the same on linux server using python manage.py > runserver it shows the following: > > $python man

Re: Django Project Server not starting when running on linux server but running on local windows desktop

2019-07-26 Thread Jorge Gimeno
On Fri, Jul 26, 2019, 8:22 PM Abhijith E wrote: > It's the latest version. > Also I am using Anaconda Distribution with Python 3.5 > > On Sat, Jul 27, 2019, 8:44 AM Jorge Gimeno wrote: > >> What version of Django are you running? >> >> On Fri, Jul 26, 2019

Re: AttributeError

2019-10-01 Thread Jorge Gimeno
On Tue, Oct 1, 2019 at 9:24 PM yasar arafath Kajamydeen wrote: > Hi , > > While try to execute it showing AttributeError, Can some one help me on > this. > > > *My views.py* > > > > from django.shortcuts import render > from django.http import Http404 > from django.http import HttpResponse > fro

Re: a variable is not defined

2019-10-17 Thread Jorge Gimeno
wd, The problem here is that when you're creating the context, the name 'result' is not defined. When the get_queryset() method returns, the result name goes out of scope. My guess that's why you're getting a NameError. If that's not it, I would suggest cutting and pasting the traceback and show

Re: a variable is not defined

2019-10-17 Thread Jorge Gimeno
I saw this that may be relevant: https://stackoverflow.com/questions/7576202/how-can-i-pass-two-models-to-a-class-based-generic-view -Jorge On Thu, Oct 17, 2019 at 8:14 PM sotiris moustogiannis wrote: > I want to make custom function because i want to take one result from 2 > different models

Re: AttributeError: cffi library '_constant_time' has no function, constant or global variable named '__spec__'

2019-10-21 Thread Jorge Gimeno
Searches to both of your error messages suggested a mismatch in .so objects. I would uninstall and reinstall Django and see if that helps. -Jorge On Sun, Oct 20, 2019 at 7:59 AM 'Abhishek Sharma' via Django users < django-users@googlegroups.com> wrote: > During handling of the above exception,

Re: app urls

2019-10-21 Thread Jorge Gimeno
Hello, With the information we have here it's very difficult to suggest anything. I assume this is a web project. Are you using a framework? Which one? How do you render the html pages? What have you tried so far? All questions which will help us help you. -Jorge On Mon, Oct 21, 2019 at 6:47 PM

Re: Getting ```AttributeError: 'str' object has no attribute 'state_forwards'``` when running a migrations, Down there is the migrations file. please help

2019-10-22 Thread Jorge Gimeno
Can you post your models.py files, please? -Jorge On Tue, Oct 22, 2019, 6:07 PM fils-aime walnes andre < walnesfilsa...@gmail.com> wrote: > Merci freo > > Le lundi 21 octobre 2019, adonis simo a écrit : > >> >> # Generated by Django 2.2.3 on 2019-10-21 22:00 >> >> >> >> from django.db import mi

Re: TypeError: api_view() takes from 0 to 1 positional arguments but 2 were given

2019-10-24 Thread Jorge Gimeno
It looks like the call to @api_view should be like this: @api_view(['GET', 'POST']) In other words, pass in a single list of the permitted HTTP methods. Docs here: https://www.django-rest-framework.org/api-guide/views/#api_view -Jorge On Thu, Oct 24, 2019 at 5:01 PM chiyabgs wrote: > Project

Re: I can't import views

2019-11-24 Thread Jorge Gimeno
Where is the views.py file located? On Sun, Nov 24, 2019 at 10:23 AM Shrikanth M wrote: > can i get solution for this? > > On Saturday, August 5, 2017 at 4:43:42 AM UTC+5:30, Body Abdo wrote: >> >> I'm trying to import view in my url in base project but i can't >> >> >> File "/var/www/project/ve

Re: How can I host my application in web hosting?

2019-11-30 Thread Jorge Gimeno
Deb, Digital Ocean will allow you to run what you can install. If you can get it on the server, you can use it. Heroku and Python Anywhere do have specific services that are available. You can check out their documentation to see what they are. I don't know much about AWS, so that I will not be

Re: good day guys

2019-12-05 Thread Jorge Gimeno
By chance did you set AUTH_USER_MODEL in settings.py? That's a requirement if you're using a custom user model (I guessed that because your UserRole inherits from AbstractUser). There's a good tutorial on writing a custom user model here: https://wsvincent.com/django-custom-user-model-tutorial/

Re: class 'django.db.utils.ProgrammingError'

2019-12-05 Thread Jorge Gimeno
Cutting and pasting the entire traceback is a good start in helping us see what is going wrong. -Jorge On Thu, Dec 5, 2019 at 10:43 AM Ram wrote: > Hi, > > I'm also hitting the similar error. I would like to know what causes this > error. Basically we are reading a XML file and extracting certa

Re: Where to set the DATABASE_URL environment variable on Heroku

2019-12-06 Thread Jorge Gimeno
On Fri, Dec 6, 2019 at 5:40 PM Tim Johnson wrote: > Despite the voluminous Heroku documentation I am unable to establish > where to initialize the DATABASE_URL that would establish credentials > for my deployed database. > > Heroku's documentation uses the following example > > DATABASE_URL=$(her

Re: getting error '1' is not a valid UUID in django 3.0

2019-12-14 Thread Jorge Gimeno
On Sat, Dec 14, 2019 at 8:59 AM sagar ninave wrote: > -- > 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

Re: invalid syntax in mysite url

2019-12-17 Thread Jorge Gimeno
On Tue, Dec 17, 2019 at 9:09 AM MEGA NATHAN wrote: > Hi. > > syntax error how to clear this one. > > -- > 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

Re: django.urls.exceptions.NoReverseMatch

2019-12-19 Thread Jorge Gimeno
On Wed, Dec 18, 2019, 10:20 PM Chetan Rokade wrote: > Hi Friends, > getting below error : > "django.urls.exceptions.NoReverseMatch: Reverse for 'EditChange' not > found. 'EditChange' is not a valid view function or pattern name." > > I have removed EditChange tag/string from all files in my proje

Re: Install library from Github

2020-01-02 Thread Jorge Gimeno
On Wed, Jan 1, 2020 at 6:07 PM Mark34.59 wrote: > Windows 10 PC with new Git installation is failing to recognize the > command "pip": > pip install git+https://github.com/gbozee/django- (command I typed per > instructions) > bash: pip: command not found (response from Git) > > On Wednesday, Janu

Re: Install library from Github

2020-01-02 Thread Jorge Gimeno
th that accomplished, I was then able to gain access to the Github > library. > Thanks again for your suggestions. In the process of attempting one task, > I learned many other things. > > On Thu, Jan 2, 2020 at 8:27 PM Jorge Gimeno wrote: > >> >> >> On Wed, J

Re: pip install mysqlclient not working

2020-01-03 Thread Jorge Gimeno
On Fri, Jan 3, 2020 at 5:44 AM Jimmy Lukwago wrote: > > On Wed, Jan 1, 2020, 15:59 Mohd Akram wrote: > >> i am using python 3.8 and django 1.11.22 >> >> PS C:\WINDOWS\system32> *pip install mysqlclient* >> Collecting mysqlclient >> Using cached >> https://files.pythonhosted.org/packages/d0/97/

Re: Django tutorial part 2: "It’s important to add __str__() methods to your models"

2020-01-12 Thread Jorge Gimeno
Hmm. Not doing that on mine. It is correct that __str__() is defined in models.Model, which your models inherit from. I don't know why it would be considered an error. -Jorge On Sun, Jan 12, 2020 at 1:56 PM Julius Lange wrote: > Dear people, > > currently doing the django tutorial! Really en

Re: post list view not found NoReverseMatch

2020-01-29 Thread Jorge Gimeno
This exception gives us information in the traceback about how to find what went wrong. Without that, we can't speculate as to what is going on. There is a good answer here on working through NoReverseMatch exceptions: https://stackoverflow.com/questions/38390177/what-is-a-noreversematch-error-and

Re: how h can use DICOM files through Django app?

2020-01-31 Thread Jorge Gimeno
Django forms do support file uploads. The FileField form field documentation is here: https://docs.djangoproject.com/en/3.0/ref/forms/fields/#filefield -Jorge On Fri, Jan 31, 2020 at 5:35 PM Abdullah Shaker < abdullah.shaker2...@gmail.com> wrote: > i am tring to make a form through Django. > ho

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Jorge Gimeno
On Fri, Jan 31, 2020 at 8:33 PM Dave Ko wrote: > I also have some trouble with using signal, which works perfectly fine on > localhost but not deployed > > > On Saturday, February 1, 2020 at 12:20:29 PM UTC+8, jlgimeno71 wrote: >> >> >> On Fri, Jan 31, 2020 at 5:35 PM Dave Ko wrote: >> >>> Hi e

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Jorge Gimeno
What I believe is going on is that Django is looking for the password reset view at password_reset, and that url path doesn't exist anywhere in urls.py. I see a path named "password-reset", which won't match. Let's try to rename that url conf to password_reset, and leave the rest unchanged. Does

Re: Big Problem After Going Live: NoReverseMatch at /login/ Reverse for 'password_reset' not found. 'password_reset' is not a valid view function or pattern name

2020-01-31 Thread Jorge Gimeno
I apologize to the list for posting all the emails to everyone. I'll keep this going off list. -Jorge On Fri, Jan 31, 2020 at 10:09 PM Jorge Gimeno wrote: > What I believe is going on is that Django is looking for the password > reset view at password_reset, and that url path do

Re: Django local host connection aborted

2020-02-05 Thread Jorge Gimeno
On Wed, Feb 5, 2020, 4:34 AM Ayser shuhaib wrote: > Can you send your settings.py file please. > > On Wed, 05 Feb 2020 at 14:30, yazan bader > wrote: > >> am having new issue when running Django localhost 127.0.0.1:8000 as >> connection getting aborted ,this is new for me as I am working with D

Re: 404 error

2020-02-12 Thread Jorge Gimeno
On Wed, Feb 12, 2020 at 2:29 PM mahshid asadi wrote: > Hi everyone. Im a beginner. i use this sites tutorial and still i cant fix > the 404 error,please someone help me. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe fro

Re: Trouble after create a pool

2020-02-13 Thread Jorge Gimeno
On Thu, Feb 13, 2020, 10:49 AM Rodrigo Silva < carvalhaes.silva.rodr...@gmail.com> wrote: >Hi, I'm starting in django and learning about the tutorials. > After I have been created and set up, when I run the server the shell show > me a error > > Someone can help me? Than you! > > C:\Users\carv

  1   2   >