Re: Django production deployment on my VPS

2018-06-30 Thread Gerardo Palazuelos Guerrero
hi Kamal, I found this link as part of a django training I did in a udemy course (https://www.udemy.com/the-ultimate-beginners-guide-to-django-python-web-dev-website). Link is: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04

Django production deployment on my VPS

2018-06-30 Thread Kamal Sharma
Dear Django community, I have developed my django application but i am facing problem to deploy it on my "virtual private server". And tutorial of production deployment are making me so confuse so i am unable to deploy it. Can you please share with me the steps to deploy my django project on

Re: Database

2018-06-30 Thread Mike Dewhirst
I've used both. If you have a choice use Postgres. Mike Connected by Motorola ABHISHEK PARMAR <150305105...@paruluniversity.ac.in> wrote: >Should i use postgres or mysql ? > >-- >You received this message because you are subscribed to the Google Groups >"Django users" group. >To unsubscribe

Re: Database

2018-06-30 Thread Mark Phillips
Use whichever one you are more familiar with, unless there is a technical reason for your specific project to pick one over the other. Familiarity is important if you are just learning django, as you don't need too many learning curves at the same time. Sometimes, it is helpful to look at the

Re: Database

2018-06-30 Thread Joshua Kayode
Use postgresql, but you can find reasons not to!, the choice between MySQL and postgresql is more or less personal! Both have their strengths and weakness! On Jun 30, 2018 14:05, "ABHISHEK PARMAR" <150305105...@paruluniversity.ac.in> wrote: > Should i use postgres or mysql ? > > -- > You

Cannot add choice filed with radio buttons in my model form using widget but only charfield.

2018-06-30 Thread Saloni Kalra
*post-form.html* {% extends "posts/post_base.html" %} {% load bootstrap3 %} {% block post_content %} {% if not form.instance.pk %} Create Post {% else %} Update Post {% endif %} {% csrf_token %} {% bootstrap_form form %} {% endblock %} *models.py* from django.conf import settings from

Re: django windows apache tell if apache is working

2018-06-30 Thread Jason
I meant the tutorial at https://docs.djangoproject.com/en/2.0/intro/tutorial01/ That said, there's a few different ways you can actually deploy, but digitalocean has some good resources for starting out.

Re: django windows apache tell if apache is working

2018-06-30 Thread Bob Bobsled
Hi, Thanks. Yes, I went thru the Mozilla library tutorial on a fedora dev machine to the point where I realized I needed to do more with the last mile, so to speak working on setup of the production server part on Windows and wamp. Seems most tuts end at manage.py runserver, or start into

Re: Queryset calculation and then filter/exclude/limit data rendered

2018-06-30 Thread rod termaat
I figured it out. Probably not the ideal solution, but it works for now. I did not realize you could use an IF tag in the the template. I then passed the fromDate and toDate into the template and used that to limit the records to only that particular month. Hopefully as my skills increase I

Database

2018-06-30 Thread ABHISHEK PARMAR
Should i use postgres or mysql ? -- 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

Re: Can't access my django runserver

2018-06-30 Thread Anirudh Jain
You forgot to put 'comma' after DIRS': [os.path.join(BASE_DIR, 'templates')] in templates. It should be DIRS': [os.path.join(BASE_DIR, 'templates')], On Sat 30 Jun, 2018, 15:52 Umar Kambala, wrote: > > this are my codes... > > # SECURITY WARNING: don't run with debug turned on in production! >

Re: Can't access my django runserver

2018-06-30 Thread Glen D souza
I think there is a ' , ' missing after 'DIRS' in Templates settings On Saturday, 30 June 2018, Umar Kambala wrote: > > this are my codes... > > # SECURITY WARNING: don't run with debug turned on in production! > DEBUG = True > > ALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com'] >

Re: django windows apache tell if apache is working

2018-06-30 Thread Jason
appreciate the detailed report :-) so, have you set up the django tutorial project? that application method in wsgi doesn't make any sense. you should have urls and views set up in your project -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Can't access my django runserver

2018-06-30 Thread Jason
you're missing a comma at the end of 'DIRS': [os.path.join(BASE_DIR, 'templates')] for future reference, if you want people to help you, give the information up front as well as context. Your original posting showed minimal information, so there was nothing we could do until you posted the

Re: Can't access my django runserver

2018-06-30 Thread Umar Kambala
this are my codes... # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True ALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com'] ALLOWED_HOSTS = ['localhost', '.pythonanywhere.com'] # Application definition INSTALLED_APPS = [ 'polls.apps.PollsConfig',