Re: How can I change the TabularInline "title" on Django Admin?

2016-07-07 Thread Mike Dewhirst
On 8/07/2016 2:56 AM, Fellipe Henrique wrote: Hello, When we need to use TabulerInline on Django Admin, the admin template create a "title" for the field... it's not the verbose_name... verbose_name is set like a Group.. "Blue" line before TabularInline... after this line, we have a table

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-07 Thread Michal Petrucha
On Thu, Jul 07, 2016 at 03:29:00PM -0300, Fellipe Henrique wrote: > On Thu, Jul 7, 2016 at 2:57 PM, Michal Petrucha < > michal.petru...@konk.org> wrote: > > > Maybe you're referring to verbose_name_plural? > > > > Unfortunately no.. :( > > Here is a example: (in pt-br sorry...) > [image:

Re: running devel server in docker container

2016-07-07 Thread Larry Martell
On Tue, Jun 28, 2016 at 5:19 PM, Larry Martell wrote: > On Tue, Jun 28, 2016 at 5:11 PM, Michal Petrucha > wrote: >> On Tue, Jun 28, 2016 at 05:01:20PM -0400, Larry Martell wrote: >>> I am trying to run the devel server in a docker

django_bootstrap_calendar and admin backend

2016-07-07 Thread Cronos Cto
I am doing a project where I gotta explore as much of the Django framework as possible. One of the things I want to do is to implement the app django_bootstrap_calendar, so far I was able to implement the the calendar to a button that is a linked to the calendars address. I am having a hard

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-07 Thread Fellipe Henrique
On Thu, Jul 7, 2016 at 2:57 PM, Michal Petrucha < michal.petru...@konk.org> wrote: > Maybe you're referring to verbose_name_plural? > Unfortunately no.. :( Here is a example: (in pt-br sorry...) [image: Inline image 2] I want to change the "DATASET" and "Dataset_users object" verbose_name

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-07 Thread Michal Petrucha
On Thu, Jul 07, 2016 at 01:56:08PM -0300, Fellipe Henrique wrote: > Hello, > > When we need to use TabulerInline on Django Admin, the admin template > create a "title" for the field... it's not the verbose_name... verbose_name > is set like a Group.. "Blue" line before TabularInline... after this

Is there any way to alter the url of a FileField in Django?

2016-07-07 Thread McKinley
FileField objects have a url attribute. How do I alter it? The docs say it is read-only. Is there even a way to alter the underlying storage class? I am working with a migrated database and can't get the urls of the old directory structure to apply the new deployment. The MEDIA_ROOT is set

How can I change the TabularInline "title" on Django Admin?

2016-07-07 Thread Fellipe Henrique
Hello, When we need to use TabulerInline on Django Admin, the admin template create a "title" for the field... it's not the verbose_name... verbose_name is set like a Group.. "Blue" line before TabularInline... after this line, we have a table title... that's my problem... how can I change these

Re: Django Unleashed, custom user model

2016-07-07 Thread Malik Rumi
Waited as long as I thought I could to hear from you. So here's my result: (cannon)malikarumi@Tetuoan2:~/Projects/cannon/jamf$ python manage.py makemigrations --merge Traceback (most recent call last): … raise ValueError("Could not find common ancestor of %s" % migration_names) ValueError:

Re: Deploying a Django 1.9 project

2016-07-07 Thread ofeyofey
Hi, I also am trying to deploy Django 1.9 to Bluehost shared hosting, but with Python 2.7. As the server is Apache I should be using mod_wsgi but that requires access to httpd.config which Bluehost does not allow . FastCGI is not supported by Django

Need some Help

2016-07-07 Thread arun pal
Can anyone give me solution for this http://stackoverflow.com/questions/38249607/need-help-for-design-database-and-providing-authorisation-in-django-app -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Create navbar dropdown menu list with url tags

2016-07-07 Thread ludovic coues
"## {{ airlines|pprint }}" can't display a dropdown menu. It's a debug tool. It's supposed to show two # symbol so you know you are editing the right template then it should display a python representation of what airlines is. If things work as expected, you should have something like that in the

Re: Create navbar dropdown menu list with url tags

2016-07-07 Thread pythonconfused
Drop down menu still not showing... Forgot to say navbar.html is inherited in base.html. I created a view .def navbar(request): airlines= Airline.objects.all() template = 'navbar.html' context = { 'airlines': airlines, } return render(request,

Re: Migrating an unmigrated database from 1.6 to 1.7

2016-07-07 Thread bobhaugen
Thank you all for all your suggestions and your quick responses. I think the 1.6-South idea would work, and likewise adding the field by hand using SQL. Problem with sqlmigrate is that all we got now is the initial migration, with all the fields. We don't have a django migration for the new

Re: Migrating an unmigrated database from 1.6 to 1.7

2016-07-07 Thread Remco Gerlich
If it's a single database and a single field, is it feasible to just add the field by hand using SQL? Greetings, Remco Gerlich On Thu, Jul 7, 2016 at 1:05 PM, bobhaugen wrote: > We're upgrading an app from django 1.4 step-by-step through all the > versions at least to

Re: Migrating an unmigrated database from 1.6 to 1.7

2016-07-07 Thread Christian Ledermann
or use python manage.py sqlmigrate to get the sql, which you than can apply manually On 7 July 2016 at 12:59, Avraham Serour wrote: > I believe you can checkout your project with a commit still using django 1.6 > with south and run the south migration on the remaining

Re: Migrating an unmigrated database from 1.6 to 1.7

2016-07-07 Thread Avraham Serour
I believe you can checkout your project with a commit still using django 1.6 with south and run the south migration on the remaining database On Thu, Jul 7, 2016 at 2:05 PM, bobhaugen wrote: > We're upgrading an app from django 1.4 step-by-step through all the > versions

Migrating an unmigrated database from 1.6 to 1.7

2016-07-07 Thread bobhaugen
We're upgrading an app from django 1.4 step-by-step through all the versions at least to 1.8. Got a self-inflicted problem with the new migrations in 1.7. Before we went to 1.7, we added a new field to a model, and migrated the db using South. Then when we went to 1.7, we restarted all the

Re: Best Practices URL Patterns

2016-07-07 Thread Remco Gerlich
Why is it a problem if the URLs are guessable? In a vacuum, I would consider that a good thing. Remco Gerlich On Wed, Jul 6, 2016 at 4:09 PM, 'davidt' via Django users < django-users@googlegroups.com> wrote: > I am looking for advice with regard to the following: > > I have a model which has

Re: Best Practices URL Patterns

2016-07-07 Thread 'David Turner' via Django users
Makes sense thanks for this On 6 July 2016 at 21:18, ludovic coues wrote: > You want a value to identify a specific job, different from the > job_id, to put in the url. > I would add a slug field in the model and use that. > > The slug could be derived from the job title,

Re: Best Practices URL Patterns

2016-07-07 Thread 'David Turner' via Django users
I will read up on this. Many thanks for the advice. On 7 July 2016 at 01:34, Alex Heyden wrote: > Primary keys as URL parameters are considered a security vulnerability by > OWASP (https://www.owasp.org/index.php/Forced_browsing) and may affect > how your code is viewed

Re: Confused about this aggregation example from the docs

2016-07-07 Thread Ankush Thakur
Ah, that totally skipped my mind. Thanks yet once again, Tim! :-) Best, Ankush On Wednesday, June 29, 2016 at 7:18:31 AM UTC+5:30, Tim Graham wrote: > > 'book' (the model name) is the default value of ForeignKey.related_name > for the publisher field on Book. > > class Book(models.Model): >