Re: Message from a django beginner user

2018-05-15 Thread James Farris
In addition to the Django docs, I recommend https://djangobook.com/ although it’s written for Django 1.11, a lot of concepts still apply. Another good website is https://tutorial.djangogirls.org/en/ Sent from my mobile device > On May 15, 2018, at 5:16 PM, Gerald Brown wrote: > > The best wa

Re: Standard approach

2018-05-15 Thread Gerald Brown
>From what little I have read, it looks like https://groups.google.com/forum/#!topic/pinax-users/OvB4sB87Nr4 is trying to do what you are suggesting here. On Wednesday, May 16, 2018 at 7:53:58 AM UTC+8, Mike Dewhirst wrote: > > This list gets a lot of new people joining. They come from all cultu

SMTPRecipientsRefused: Sender address rejected: not owned by user

2018-05-15 Thread Tom Tanner
I have a Django app running on a server with uWSGI and nginx. In my `local_settings.py` file I have this: ### # EMAIL SETUP # ### EMAIL_HOST = 'smtp.privateemail.com' EMAIL_HOST_USER = 'supp...@mydomain.com' EMAIL_HOST_PASSWORD = 'MY EMAIL PASSWORD

Re: Django Channels client not consuming

2018-05-15 Thread Andrew Godwin
Hi, I'm afraid you're using incredibly old versions of Channels and the bugs you're encountering are almost certainly fixed in more recent releases. I'm not sure there's much I can do. Andrew On Tue, 15 May 2018, 13:01 LEEPS Lab, wrote: > We have an issue implementing django channels in an oTr

Re: Message from a django beginner user

2018-05-15 Thread Gerald Brown
The best way to learn it is o jump in and start using it.  Django has a good tutorial on-line @ https://docs.djangoproject.com/en/2.0/intro/tutorial01/.  When you have problems Google and this Group are your friends. Goo luck. On 05/16/2018 01:39 AM, Francis F. Massaquoi, Jr. wrote: Hi, I'm

Standard approach

2018-05-15 Thread Mike Dewhirst
This list gets a lot of new people joining. They come from all cultures and degrees of general competence. And list members have always made them welcome and try to help as much as possible. I would say to beginners - without thinking too hard - that the best place to begin is the excellent Dj

New to Python

2018-05-15 Thread Mo El
Hi there, I`m new to python and i have been watching a lot of tutorials regarding web scraping using python, and my question is what is the best library to use, and can someone help me to understand how to write a scrapped data to an HTML, say i scrapped some data from a website and i wanted to

Django Channels client not consuming

2018-05-15 Thread LEEPS Lab
We have an issue implementing django channels in an oTree project ( http://otree.readthedocs.io/en/latest/) Currently we are forced to use django channels version 0.17.3 due to the restriction inside of oTree, so it is possible that we are dealing with version issues. However, we have an issue

Message from a django beginner user

2018-05-15 Thread Francis F. Massaquoi, Jr.
Hi, I'm Francis F. Massaquoi, Jr. with great interest in learning django 2.0, which is the latest version, I have been searching on youtube for a channel that have the latest version tutorial, I have not really find one, can someone please help me with a pdf or website, where I can learn django

Want to change value of foreignkey's foreginkey

2018-05-15 Thread mansi thakkar
Hello everyone, In my project, I have a flow like this. I have product table which is associated with product_line table with foreign key which is associated with brand table with foreign key. Now I have displayed all the columns of table product in my admin site but what I want is if I click

adding notification feature

2018-05-15 Thread Gaurav Sharma
Hello everybody, i want to add django notification feature in my simple hello world python program, like whenever i run python file it show notification helloworld Here is the snippet which i got in django notification from github. Generating notifications is probably best done in a separate s

Re: Managing multiple user types in Django

2018-05-15 Thread Vijay Khemlani
I would make a UserType table and have a foreign key from your user model to it, or maybe just have an enumerated type in your user model depending on how much custom logic there is to each user type. On Tue, May 15, 2018 at 11:50 AM Frankline wrote: > Hello Everyone, > > I am developing an API

Re: django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-15 Thread James Farris
Just to note: Django doesn’t change the settings.py file, it only references it so it knows what configurations to load. On Tue, May 15, 2018 at 7:27 AM Paolo Chilosi wrote: > thanks for pointing out about the typo. However this was not the cause of > the exception. Look to my previous answer. >

Re: Invalid HTTP_HOST header: 'testserver'. You may need to add 'testserver' to ALLOWED_HOSTS.

2018-05-15 Thread Avitab Ayan Sarmah
hi Andreas, On Sunday, May 13, 2018 at 4:12:09 PM UTC+5:30, Andréas Kühne wrote: > > Hi, > > The error is pretty self explanatory. When the test client calls the > django server it uses the hostname of testserver. This works while testing > and also in development mode as long as you have DEBUG=

Managing multiple user types in Django

2018-05-15 Thread Frankline
Hello Everyone, I am developing an API based on Django Rest Framework . Currently I have 4 user types i.e. Buyer, Merchant, Insurer, and Admin. The system I'm developing has an *API endpoint* and a *Dashboard* view. Each of the above user types have differe

How to retrieve existing data of mongodb database in Django

2018-05-15 Thread gomahesh5
I am new to Django started developing the application but got a problem in retrieving the data from already existing data which looks like this below. {"_id":"5ad72e80bdd7ad184031ab2d","name":"john","country":"usa","place":"xyz"} {"_id":"5ad72ec6bdd7ad184031ab2e","name":"ron","co

Re: django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-15 Thread Paolo Chilosi
thanks for pointing out about the typo. However this was not the cause of the exception. Look to my previous answer. On Tuesday, May 15, 2018 at 9:44:57 AM UTC-4, Sidyvan Fernandes de Andrade wrote: > > python manage.py makemigrations polls > > 2018-05-15 8:51 GMT-03:00 Paolo Chilosi > >: > >>

Re: django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-15 Thread Paolo Chilosi
Mattew, thank for the prompt answer. In effects, for some reason the app was preset 2 times in the INSTALLED_APPS list, also if I am sure I added it only once at the beginning of the list. Maybe django added it again at the end of the list. I will watch this behavior and let the list know. Prob

Re: How to operate with two models in one view

2018-05-15 Thread Fidel Leon
When you are using models related by a Foreign Key, by default you have access to the "children" models from the parent model. For example, your Sensor model gets a "measurment_set" property just because of such foreign key: >>> dir(Sensor.objects.all()[0]) > > [other properties, '*measurment_set*

Re: django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-15 Thread Sidyvan Fernandes de Andrade
python manage.py makemigrations polls 2018-05-15 8:51 GMT-03:00 Paolo Chilosi : > As new to Django I am learning following the tutorial carefully. When I > reached the point of making the migration for the polls app I executed > (from the PyCharm terminal) the command: > > (venv) C:\Users\Paolo\

RE: django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-15 Thread Matthew Pava
Though I’ve never seen that error, I’m guessing that maybe you added ‘polls’ to your INSTALLED_APPS setting more than once. Simply remove the extra references to it. From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Paolo Chilosi Sent: Tuesday, May 15, 201

django 2.0 tutorial :: exception:: application labels are not unique.

2018-05-15 Thread Paolo Chilosi
As new to Django I am learning following the tutorial carefully. When I reached the point of making the migration for the polls app I executed (from the PyCharm terminal) the command: (venv) C:\Users\Paolo\PycharmProjects\mysite>python manage.py makemigration polls and then I obtained the foll

Re: Frontend

2018-05-15 Thread Chekib Gmt
Thank you Vinicius 2018-05-15 12:39 GMT+01:00 Vinicius Assef : > Hi. > > No, Django cannot replace javascript. Django works in the backend. > > There are some projects bringing Python to browser. One of them is > brython. Certainly there are others, too. > > > > On 15 May 2018 at 07:48, Chekib G

Re: Frontend

2018-05-15 Thread Vinicius Assef
Hi. No, Django cannot replace javascript. Django works in the backend. There are some projects bringing Python to browser. One of them is brython. Certainly there are others, too. On 15 May 2018 at 07:48, Chekib Gmt wrote: > Hello, > I would like to know if the django framework can replace

How to operate with two models in one view

2018-05-15 Thread Anton Smirnov
There are two models "Sensors" with information about them and "Measurments" . class Sensor(models.Model): date_start = models.DateField() Latitude = models.DecimalField(max_digits=18, decimal_places=15) Longitude = models.DecimalField(max_digits=18, decimal_places=15) def __s

Required Full Stack Developers

2018-05-15 Thread pranay reddy
Location:Bangalore Experience:0-1 year Skills: Python,Django and UI design Responsibilities: able to analyse the concept and Make Django models with different types of relations. *If anyone plz sent updated CV to pranai.re...@ekatechserv.com* -- You received this message because you are subsc

How to operate with two models in one view?

2018-05-15 Thread Anton Smirnov
I have two models: "Sensors" with information about its and "Measurments" . class Sensor(models.Model): date_start = models.DateField() Latitude = models.DecimalField(max_digits=18, decimal_places=15) Longitude = models.DecimalField(max_digits=18, decimal_places=15) def __str__

Frontend

2018-05-15 Thread Chekib Gmt
Hello, I would like to know if the django framework can replace javascript (the frameworks Angular js or React) in Frontend development and are there any robust frameworks that can be combined with django to develop a whole website with only python language (backend + frontend). Regards --

Control PhoneNumber Format in SQL

2018-05-15 Thread tango ward
Hi, I am currently migrating database from MySQL to PostgreSQL. I have already migrated some of the data but I can't pull the data for my phonenumber field. I have a model: class BasePerson(TimeStampedModel): phone_number = PhoneNumberField(max_length=50, verbose_name=_(u'phone number'), blank=