Re: Is it Possible to run django locally without internet connection

2019-05-07 Thread Julio Cojom
I strongly recommend install some web server like mod_wsgi-express, guinicorn, openlitespeed to serve files, even if its local. Regards. Julio C. El mar., 7 may. 2019 a las 9:46, Idris Adegbite () escribió: > Good day guys, Please can i run django on laptop without internet > connection. >

Re: Is it Possible to run django locally without internet connection

2019-05-07 Thread Shashank Singh
Run server with command ./manage.py runserver 0:8000. 0 here tells that any one on the same network can access the project's urls like this. Suppose your laptop's ip is 10.0.0.156 so from your phone go to 10.0.0.156:8000/admin and you are connected to your django projects. You must be on the same

Re: Unit conversions between model field value and form field value

2019-05-07 Thread Shashank Singh
One way could be make a custom read only field to show it in current value in days and take a custom field and on save_model take its value as days multiply it with 24 and save it in model's field. On Wed, May 8, 2019, 7:05 AM Joe Reitman wrote: > Hi Tim, > > There is a 'Best Practices' guide

Re: Unit conversions between model field value and form field value

2019-05-07 Thread Joe Reitman
Hi Tim, There is a 'Best Practices' guide for Django that recommends making models fat, https://django-best-practices.readthedocs.io/en/latest/applications.html#models. With that it would be logical to do both conversions in the model. Regards, Joe On Tuesday, May 7, 2019 at 5:24:09 PM

Re: Ayuda con el error: UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position 7: ordinal not in range(128)

2019-05-07 Thread Phako Perez
Al parecer estás usando un carácter como ñ o ç, el cual es de los extendidos, supongo intentas settear el password o el nombre de usuario, intenta con puro carácter sin acentos o tilde ni ninguna otra forma rara. Sent from my iPhone > On May 7, 2019, at 16:21, noel moreira wrote: > > Hola

Ayuda con el error: UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position 7: ordinal not in range(128)

2019-05-07 Thread noel moreira
Hola amigos, me podrían ayudar aresolver este error: UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position 7: ordinal not in range(128)} Esto me paso cuando estaba creando el super usuario en django -- You received this message because you are subscribed to the Google

Unit conversions between model field value and form field value

2019-05-07 Thread Tim Bell
Hi, I have a model with an integer field storing a duration in hours, while I want to present that to users in a form in days. (The choice of these different units is imposed by other factors not under my control.) So, when saving a form, I need to convert a value in days to hours by

Saludos...

2019-05-07 Thread MSc.Barbaro Elisor Hernandez
cuando voy a instalar la libreria de mysql para django 2.2 , este me pide que debo instalar el microsoft visual c++ 14.0,,, diganme el sitio para bajarlo.. gracias -- MSC.BARBARO ELISOR HERNÁNDEZ RODRÍGUEZ ESPECIALISTA EN EDUCACIÓN SUPERIOR ESPECIALISTA GENERAL INFORMÁTICO, JCCE IJ ANALISTA

Re: Django wsgi apache Deploy project

2019-05-07 Thread Subhodeep Das
Try: WSGIScriptAlias /test/tc-test /var/www/stage/hello/tc-test/django.wsgi You shouldn't have trailing slash on first argument. On Tue, May 7, 2019 at 7:27 PM N'BE SORO wrote: > > Hi I'm a beginner in python and I realized a project in Django. I have > problems in hosting my project. here is

Re: Django wsgi apache Deploy project

2019-05-07 Thread Kevin Jay
Remove the spaces in the paths: WSGIPythonPath / var / www / html / ecommerce / should be WSGIPythonPath /var/www/html/ecommerce/ Do the same for the other paths On Tue, May 7, 2019 at 8:57 AM N'BE SORO wrote: > > Hi I'm a beginner in python and I realized a project in Django. I have >

Is it Possible to run django locally without internet connection

2019-05-07 Thread Idris Adegbite
Good day guys, Please can i run django on laptop without internet connection. if yes, Please kindly help me out with the procedures. I am having issues connecting my phone and laptop and i dont want that to slow down my learning. Any help would be appreciated -- You received this message

Re: Is it Possible to run django locally without internet connection

2019-05-07 Thread Rob Gmail
Yes you can. I do it for an IOT device that we have using Django/python, many times it does not have an Internet connection but runs fine. Rob 203-671-6514 Sent from my mobile device, please excuse the typos. > On May 7, 2019, at 11:38 AM, Idris Adegbite wrote: > > Good day guys, Please

Re: How to perform additional actions on PasswordReset in Django

2019-05-07 Thread Sanjay Chandak
Hi all, I am new in the Django so I am not aware about the more functionality of the django but instead you can go with the database approach. If user provide wrong details just set "Locked" column in database as 1 and with some filter you can LOCK the account and at the time of reset just set

Django wsgi apache Deploy project

2019-05-07 Thread N'BE SORO
Hi I'm a beginner in python and I realized a project in Django. I have problems in hosting my project. here is my code in the 000-default.conf #ServerName #ServerAlias ServerAdmin webmaster @ localhost DocumentRoot / var / www / html / ecommerce WSGIScriptAlias ​​/

Re: something is wrong with my server(Django)

2019-05-07 Thread Sundararajan Seshadri
Update to my earlier answer: Your project is called lokdon_project. Your settings.py should be in a sub-directory (also) called as lokdon_projec below this directory. - On Tuesday, May 7, 2019 at 5:02:16 AM UTC+5:30, Josiah

Re: something is wrong with my server(Django)

2019-05-07 Thread Sundararajan Seshadri
Don't panic. FIrst: when you are running it in local server mode, the wsgi.py file is of no consequence. Only Settings.py is important. Do you see that? If your main app (where the manage.py is available) is called as xx then the settings.py should be within the sub-directory of this file,

Re: Need Help

2019-05-07 Thread Chetan Ganji
As far as I know, there are only two dependency for the django, that is pytz and sqlparse. Rest of the code for django is written from scratch. You can confirm this by creating a new virtualenv and install django inside it. Command will install django as well as other 2 libraries. Regards,

Need Help

2019-05-07 Thread Manoj Kumar Singh
Many of the interviewer asked me how many libraries and frameworks are used in django project. Please let me know the correct answer. -- *Regards:-*Manoj Kumar Singh -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Projects to work on

2019-05-07 Thread Lance Haig
I think a great way to get experience is to join a django based open source project and see if you can help them solve some of the outstanding tickets for the project. this way the projects and complex and also you get to learn form other people. I would suggest you create an account on

Re: django models

2019-05-07 Thread sachinbg sachin
On Tue, May 7, 2019, 12:35 PM Soumen Khatua Hi Folks, > > I didn't understand this code please help me to understand this code. > > class AddressQueryset(models.QuerySet): > def annotate_default(self, user): > # Set default shipping/billing address pk to None > # if default

django models

2019-05-07 Thread Soumen Khatua
Hi Folks, I didn't understand this code please help me to understand this code. class AddressQueryset(models.QuerySet): def annotate_default(self, user): # Set default shipping/billing address pk to None # if default shipping/billing address doesn't exist

Re: django models

2019-05-07 Thread Soumen Khatua
Yes,You are right as_data is custom made function inside the same class,here is the code: def as_data(self): """Return the address as a dict suitable for passing as kwargs.Result does not contain the primary key or an associated user.""" data =