Re: Django beginner

2017-07-14 Thread Mark Aydelotte
I would think you have a advantage by knowing Python. I just started learning both and i am not finding Django that hard. On Thursday, July 13, 2017 at 7:51:50 PM UTC-4, Amir Pirmoradian wrote: > > Hey Guys, i'm a absolute beginner at Django. I started to learn django > from https://www.djangop

Command: remove_stale_contenttypes, what is considered stale? and when to use it?

2017-07-14 Thread sarvi
We had the "sphinxdoc" app in our app list, along with django.contrib.contenttypes Our database was migrated to it and django had the tables for sphinxdoc and 2 content types added to the contenttypes table. We wanted to remove isphinxdoc We did manage.py migrate sphinxdoc zero, which removed

Re: Retroactively seting up virtualenv

2017-07-14 Thread Alceu Rodrigues de Freitas Junior
I guess you don't need to do anything besides running "source /bin/activate" to use your new virtualenv ("whatever" should be directory where it is located). Em 14/07/2017 12:30, Rich Shepard escreveu: My business is not web site development and I'm starting development of a django project

Retroactively seting up virtualenv

2017-07-14 Thread Rich Shepard
My business is not web site development and I'm starting development of a django project for my own use. Django-1.11.3 is installed in /usr/lib/python3.6/site-packages/django and my project is located in / ~/development/clientmgntsystem_project/. I had no issues the last time I ran 'python ma

Re: Problem with views PasswordChangeView vs. password_change

2017-07-14 Thread Carsten Fuchs
Am 13.07.2017 um 22:44 schrieb Tim Graham: The success_url of PasswordChangeView (actually the behavior comes from the inherited FormView) only accepts a URL, not a URL name. You can update to your code like this: from django.urls import reverse_lazy ... success_url=reverse_lazy('lori:pwd_done')

Unable to override map_template in OSMGeoAdmin in django 1.11.3

2017-07-14 Thread Chew Kok Hoor (gMail)
Hi, I tried overriding the map template using bold line below: class LocationAdmin(geo_admin.OSMGeoAdmin): form = LocationForm map_template = 'gis/admin/google.html In my settings.py I have added my folder: TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.Djang

Re: Django multi table on same model

2017-07-14 Thread Guilherme Leal
That kind of table partitioning, usualy is made on the database level, not on the application level. You should check your database documentation to learn how implement that logic. On PostgreSQL, check this . 2017-07-14 6:18 GMT-03

Re: Redirect_field_name in LoginView

2017-07-14 Thread Tim Graham
Hi, did you find the documentation for LoginView? https://docs.djangoproject.com/en/dev/topics/auth/default/#django.contrib.auth.views.LoginView On Friday, July 14, 2017 at 7:13:29 AM UTC-4, Polina Ia wrote: > > Hello, > can someone explain me the setting of 'redirect_field_name' in LoginView? >

Redirect_field_name in LoginView

2017-07-14 Thread Polina Ia
Hello, can someone explain me the setting of 'redirect_field_name' in LoginView? in my urls.py I have the following urlpatterns = [ url('^login/$', LoginView.as_view(template_name='accounts/login.html'), name='login'), ] After successful signing in it redirects to default 'next'=/acco

How to set redirect_field_name in LoginView

2017-07-14 Thread Polina Ia
Hello, can someone explain me the setting 'redirect_field_name' in LoginView? I have following in my urls.py: url('^login/$', LoginView.as_view(template_name='accounts/login.html') Now it is redirected by default to 'next'=/accounts/profile/. I'd like to set my own url for redirect. Is it bett

Re: Django multi table on same model

2017-07-14 Thread Christian Ledermann
What problem are you trying to solve and why this way? How many rows does your table have? What database are you using? On 13 July 2017 at 18:18, Kalvin Handilist wrote: > > down votefavorite > > > I have huge table