Re: Error during GeoDjango tutorial documentaion

2018-08-28 Thread Benjamin Smith
Thank you Jason, that was it. On Sun, Aug 26, 2018 at 5:49 PM Jason wrote: > this might be related: > https://groups.google.com/forum/#!topic/geodjango/Imkq2DDI7qg > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from

Re: Error during GeoDjango tutorial documentaion

2018-08-26 Thread Benjamin Smith
I am using these version: gdal-bin v2.2.3+dfsg-2 Python v3.6.5 Django v2.1 psycopg2 v2.7.5 postgis v2.4.3+dfsg-4 On Sun, Aug 26, 2018 at 3:45 PM Benjamin Smith wrote: > I am going through the GeoDjango tutorial from the official documentation. > >1. I have installed the

Error during GeoDjango tutorial documentaion

2018-08-26 Thread Benjamin Smith
I am going through the GeoDjango tutorial from the official documentation. 1. I have installed the required geospatial libraries, installed and enabled spatial functionality by extending the PostgreSQL via postgis. 2. Downloaded the world borders data, and have unzipped the data. 3.

Re: Geographical location filter app in Django

2018-08-26 Thread Benjamin Smith
-distance/35896358#35896358 > > On Thu, 23 Aug 2018 at 09:04, Benjamin Smith > wrote: > >> I would like to create a market place like app with Djano as the backend >> server, where users can buy/sell items. In the app I would like have to a >> feature related to geo

Geographical location filter app in Django

2018-08-23 Thread Benjamin Smith
I would like to create a market place like app with Djano as the backend server, where users can buy/sell items. In the app I would like have to a feature related to geographic region of a user. Such as, to filter out items in a given specific miles of radius. Example use case: - User uploads

Filtering using viewsets in django rest framework

2017-03-03 Thread Benjamin Smith
Please consider these three models: class Movie(models.Model): name = models.CharField(max_length=254, unique=True) language = models.CharField(max_length=14) synopsis = models.TextField() class TimeTable(models.Model): date = models.DateField() class Show(models.Model): day

[no subject]

2015-11-13 Thread Benjamin Smith
I need to update the object with its model form and passed the instance as described in the django doc . However I am having two problems when saving the form: 1. When I change the title and submit the form, the

Re: Custom user model password is not hashed

2015-11-13 Thread Benjamin Smith
eUser and is the same that I am using in a project). > > You did restart the django shell after changing the code? > > 2015-11-12 16:44 GMT+01:00 Benjamin Smith <benjaminsmith5...@gmail.com>: > >> I have changed user.set_password(self.cleaned_data["password"]) to

Re: Custom user model password is not hashed

2015-11-12 Thread Benjamin Smith
gt;: > >> Hello, >> >> I don't quite get the code in your method: 'MyUserManager.create_user': >> user.set_password(self.cleaned_data["password"]) >> >> You're in your Manager method but call self.cleaned_data ? >> >> You can set a breakpoint insid

Custom user model password is not hashed

2015-11-12 Thread Benjamin Smith
I have my own custom User model, and its own Manger too. Models: class MyUser(AbstractBaseUser, PermissionsMixin): email = models.EmailField(max_length=255, unique=True) first_name = models.CharField(max_length=35) last_name = models.CharField(max_length=35) username =

Re: django admin - You don't have permission to edit anything

2015-11-06 Thread Benjamin Smith
> https://github.com/django/django/blob/master/django/contrib/auth/models.py#L207 > > The reason why it's working now is because you have explicitly set the > is_superuser property to True. > > Regards, > > Andréas > > 2015-11-06 10:04 GMT+01:00 Benjamin Smi

Re: django admin - You don't have permission to edit anything

2015-11-06 Thread Benjamin Smith
the is_superuser > property to True. > > Check the documentation for the django admin site here: > https://docs.djangoproject.com/en/1.8/ref/contrib/admin/ > > Regards, > > Andréas > > 2015-11-06 0:15 GMT+01:00 Benjamin Smith <benjaminsmith5...@gmail.com>: &g

django admin - You don't have permission to edit anything

2015-11-05 Thread Benjamin Smith
I followed the django doc on creating a custom user model while extending the model itself with my own fields. So it became like this: class MyUser(AbstractBaseUser, PermissionsMixin): email =

Is it necessary to make a custom manager for the custom User model?

2015-10-09 Thread Benjamin Smith
I am making a custom user model using the AbstractBaseUser and PermissionsMixin by following these two tutorials (tutorial-1 and tutorial-2 ). This my model

KeyError

2015-10-07 Thread Benjamin Smith
I am making a registration form to register new users using the User model. This is the forms.py: class UserForm(forms.ModelForm): confirm_email = forms.EmailField(label="Confirm email") def clean(self): email = self.cleaned_data['email'] confirm_email =

KeyError

2015-10-07 Thread Benjamin Smith
I am making a user registration form to register new users using the User model. This is the forms.py: class UserForm(forms.ModelForm): confirm_email = forms.EmailField(label="Confirm email") def clean(self): email = self.cleaned_data['email'] confirm_email =