Error while doing migrations for a new table

2017-04-18 Thread Mohamed Ghariani
Hello,
I tried to apply migrations for a new model. The model was used in a form 
used in the admin so the migrations failed.

He is a sample code i wrote which gave me the same errors.


models.py
from django.db import models

class App(models.Model):
name = models.CharField(max_length=50)

forms.py
from django import forms

from app.models import App


class AppForm(forms.ModelForm):
name = ((elem.id, elem.name ) for elem in App.objects.all())

admin.py
from django.contrib import admin

from app.forms import AppForm
from app.models import App


class AppAdmin(admin.ModelAdmin):
search_fields = ('id', 'name')
form = AppForm
list_display = ('id', 'name')

admin.site.register(App, AppAdmin)


After running  ./manage.py makemigrations i got this error

django.db.utils.OperationalError: no such table: app_app

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/1e16f8da-3875-434c-b669-64d3febfd02e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Feature Request] In admin the variable has_change_permission in change_form.html should not be used for the breadcrumb menu

2017-04-18 Thread Contributions to Django itself
In admin when rendering a change form the breadcrumb menu includes a link 
to the changelist, or only a text. The template’s variable 
has_change_permission is used to decide which to show.

As far as I understand the variable is set in ModelAdmin to 
has_change_permissions(request, 
obj) by default, but a user with has_change_permissions(request, obj=None) 
returning False will get a permission error clicking the link. I propose to 
take account of the possibility that the implication

has_change_permissions(request, obj) is True implies 
has_change_permissions(request, obj=None) is True


is not true.

The redirect behaviour in ModelAdmin's response_post_save_add et al. seems 
to handle this case. My implementation idea is to add another template 
variable in AdminModel's render_change_form.

If this change and implementation is welcomed I can try to create a patch 
if someone can provide guidance for what to do besides the two one line 
changes.

Greetings

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/62d320b1-338c-4e06-9abb-75f97a1a7859%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


A New Design for the "Congratulations!" Page

2017-04-18 Thread Tim Allen
I've had the privilege of introducing Django to many people over the past
several years. A recurring theme I have noticed is that once a new Django
developer reaches the "It Worked!" page, the inevitable next question is,
"now what?"

It struck me that this page is valuable real estate for the newcomer. Since
my eye for design is practically non-existent, I worked with a talented
colleague and we came up with an idea to replace the "It Worked!" page.
Here is a link:

https://chadwhitman.github.io/congrats/django/

Some of the goals we wanted to achieve:

   - Provide a friendly design using the same themes as the Django Project
   website.
   - Ensure the developer is using the current version of Django. Many
   tutorials found through Google are for older versions of Django.
   - Provide links to the current versions of the documentation,
   introductory polling tutorial, and community.
   - Include the release notes for the current version of Django.
   - Focus on the new Django developer, as many seasoned Django developers
   will using other methods for starting projects.


While it is doubtful that many would see this screen on a small device, it
is fully responsive as well. It is self-contained, with minified CSS and
SVG icons, and a total size of 20k, so it shouldn't provide much bloat at
all.

We're looking for feedback, and if the community thinks it is an
improvement, we'll be happy to work on a pull request. A big hat tip to my
colleague Chad Whitman for his design talents.

Regards,

Tim

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CACrTqc1%3Du9oG9At%3DY-SxavYtvwTb6qN5dSAUDJL0AkxJrKvQQQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: A New Design for the "Congratulations!" Page

2017-04-18 Thread Tom Forbes
I'm not a core developer but I'd just like to say that your redesign looks
amazing and is a big improvement. Even if this specific design is not
acceptable I think it's a great idea to link to the tutorials/documentation
from that page.

I'm not a big fan of it loading the fonts from Google Fonts however, is it
possible to bundle them or use a system font?.

On Tue, Apr 18, 2017 at 4:44 PM, Tim Allen  wrote:

> I've had the privilege of introducing Django to many people over the past
> several years. A recurring theme I have noticed is that once a new Django
> developer reaches the "It Worked!" page, the inevitable next question is,
> "now what?"
>
> It struck me that this page is valuable real estate for the newcomer.
> Since my eye for design is practically non-existent, I worked with a
> talented colleague and we came up with an idea to replace the "It Worked!"
> page. Here is a link:
>
> https://chadwhitman.github.io/congrats/django/
>
> Some of the goals we wanted to achieve:
>
>- Provide a friendly design using the same themes as the Django
>Project website.
>- Ensure the developer is using the current version of Django. Many
>tutorials found through Google are for older versions of Django.
>- Provide links to the current versions of the documentation,
>introductory polling tutorial, and community.
>- Include the release notes for the current version of Django.
>- Focus on the new Django developer, as many seasoned Django
>developers will using other methods for starting projects.
>
>
> While it is doubtful that many would see this screen on a small device, it
> is fully responsive as well. It is self-contained, with minified CSS and
> SVG icons, and a total size of 20k, so it shouldn't provide much bloat at
> all.
>
> We're looking for feedback, and if the community thinks it is an
> improvement, we'll be happy to work on a pull request. A big hat tip to my
> colleague Chad Whitman for his design talents.
>
> Regards,
>
> Tim
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-developers/CACrTqc1%3Du9oG9At%3DY-
> SxavYtvwTb6qN5dSAUDJL0AkxJrKvQQQ%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAFNZOJMooA8QMGaVnXJsSpL9kA6EceLo8T786Zvg5jVHGyYtHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: A New Design for the "Congratulations!" Page

2017-04-18 Thread Tim Allen
Switching to another font is certainly an option. Is the issue with Google 
Fonts the Apache license versus the Django BSD license?

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/c635d1e2-45e5-4b31-8ae2-f6acb00f943f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: A New Design for the "Congratulations!" Page

2017-04-18 Thread Collin Anderson
Beautiful.

The Google Font should not be an issue. We're already distributing that as
part of the admin, which is installed by default. The page could just
reference /static/admin/css/fonts.css.

Does a license need to be included for the rocket animation, or is that
your own work?

I hope the links could be auto-generated so they don't need to be
hand-updated with every version.

I think the unused css should be removed. We're not
using button,input,optgroup,select,textarea, etc.



On Tue, Apr 18, 2017 at 12:03 PM, Tim Allen 
wrote:

> Switching to another font is certainly an option. Is the issue with Google
> Fonts the Apache license versus the Django BSD license?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-developers/c635d1e2-45e5-4b31-8ae2-
> f6acb00f943f%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAFO84S6bSKaWgyrCV7AWTLBKe%3DkfF%2Bm2j91FwiYKLXPFwGQd9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: A New Design for the "Congratulations!" Page

2017-04-18 Thread Daniele Procida
On Tue, Apr 18, 2017, Tim Allen  wrote:

>It struck me that this page is valuable real estate

Yes it is! Firstly, I think that both your idea and design are excellent and I 
approve.

Secondly, since that space is valuable, perhaps it could also say:

This release of Django has been sponsored by . 

Django is free open-source software. Support Django's development 

The more I think about this, the less I think it's a bad idea...

Daniele

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/20170418162715.980797173%40mail.gandi.net.
For more options, visit https://groups.google.com/d/optout.


Re: A New Design for the "Congratulations!" Page

2017-04-18 Thread Aymeric Augustin
Hello Tim,

Thanks, that's a great initiative!

Given the well-documented success rate of design by committee, including our 
experience redesigning djangoproject.com, there's a risk that an inconclusive 
discussion on this mailing list will prevent your proposal from moving forwards.

Perhaps a good way to avoid that would be to form a small team (two or three 
people, including yourself and at least one committer) to evaluate the feedback 
and reach consensus in a smaller group. (I'm happy to help with the technical 
aspects e.g. how to load fonts.)

For what it's worth, I noticed a couple layout glitches in the current 
proposal, but nothing major:
-  can overlap  and  at small heights e.g. with developer 
tools open at the bottom
- links look bad at 320px wide — try the "iPhone 5" setting in Chrome's 
responsive view

Best regards,

-- 
Aymeric.



> On 18 Apr 2017, at 17:44, Tim Allen  wrote:
> 
> I've had the privilege of introducing Django to many people over the past 
> several years. A recurring theme I have noticed is that once a new Django 
> developer reaches the "It Worked!" page, the inevitable next question is, 
> "now what?"
> 
> It struck me that this page is valuable real estate for the newcomer. Since 
> my eye for design is practically non-existent, I worked with a talented 
> colleague and we came up with an idea to replace the "It Worked!" page. Here 
> is a link:
> 
> https://chadwhitman.github.io/congrats/django/ 
> 
> 
> Some of the goals we wanted to achieve:
> Provide a friendly design using the same themes as the Django Project website.
> Ensure the developer is using the current version of Django. Many tutorials 
> found through Google are for older versions of Django.
> Provide links to the current versions of the documentation, introductory 
> polling tutorial, and community.
> Include the release notes for the current version of Django.
> Focus on the new Django developer, as many seasoned Django developers will 
> using other methods for starting projects.
> 
> While it is doubtful that many would see this screen on a small device, it is 
> fully responsive as well. It is self-contained, with minified CSS and SVG 
> icons, and a total size of 20k, so it shouldn't provide much bloat at all.
> 
> We're looking for feedback, and if the community thinks it is an improvement, 
> we'll be happy to work on a pull request. A big hat tip to my colleague Chad 
> Whitman for his design talents.
> 
> Regards,
> 
> Tim
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-developers+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to django-developers@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/django-developers 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/CACrTqc1%3Du9oG9At%3DY-SxavYtvwTb6qN5dSAUDJL0AkxJrKvQQQ%40mail.gmail.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CA80F8B1-B2CF-435D-807D-D18D2DBD6C03%40polytechnique.org.
For more options, visit https://groups.google.com/d/optout.


Re: A New Design for the "Congratulations!" Page

2017-04-18 Thread Tim Allen
Thanks for the kind words. To answer your questions:

- My colleague Chad did the rocket animation. We'll both do git signed 
commits on any pull request and add ourselves to authors.
- It is also my hope to automagically create version friendly links, so we 
don't see a commit on each Django release.
- Good catch on the CSS. We're tracking these issues.

On Tuesday, April 18, 2017 at 12:15:10 PM UTC-4, Collin Anderson wrote:
>
> Does a license need to be included for the rocket animation, or is that 
> your own work?
> I hope the links could be auto-generated so they don't need to be 
> hand-updated with every version.
> I think the unused css should be removed. We're not 
> using button,input,optgroup,select,textarea, etc.
>
>
>
> On Tue, Apr 18, 2017 at 12:03 PM, Tim Allen  > wrote:
>
>> Switching to another font is certainly an option. Is the issue with 
>> Google Fonts the Apache license versus the Django BSD license?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-develop...@googlegroups.com .
>> To post to this group, send email to django-d...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/django-developers.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-developers/c635d1e2-45e5-4b31-8ae2-f6acb00f943f%40googlegroups.com
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/6f446d97-29a3-4c40-88c6-94e11919aea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: A New Design for the "Congratulations!" Page

2017-04-18 Thread Tim Allen
Your point on design by committee is spot-on; I think that's the direction 
we'll head in. Thanks for the kind words, and I've noted the issues on the 
smaller height and smaller screen issues. It is much apprecaited!

Regards,

Tim

On Tuesday, April 18, 2017 at 1:30:23 PM UTC-4, Aymeric Augustin wrote:
>
> Given the well-documented success rate of design by committee, including 
> our experience redesigning djangoproject.com, there's a risk that an 
> inconclusive discussion on this mailing list will prevent your proposal 
> from moving forwards.
>
> Perhaps a good way to avoid that would be to form a small team (two or 
> three people, including yourself and at least one committer) to evaluate 
> the feedback and reach consensus in a smaller group. (I'm happy to help 
> with the technical aspects e.g. how to load fonts.)
>
> For what it's worth, I noticed a couple layout glitches in the current 
> proposal, but nothing major:
> -  can overlap  and  at small heights e.g. with 
> developer tools open at the bottom
> - links look bad at 320px wide — try the "iPhone 5" setting in Chrome's 
> responsive view
>
> Best regards,
>
> -- 
> Aymeric.
>
>
>
> On 18 Apr 2017, at 17:44, Tim Allen > 
> wrote:
>
> I've had the privilege of introducing Django to many people over the past 
> several years. A recurring theme I have noticed is that once a new Django 
> developer reaches the "It Worked!" page, the inevitable next question is, 
> "now what?"
>
> It struck me that this page is valuable real estate for the newcomer. 
> Since my eye for design is practically non-existent, I worked with a 
> talented colleague and we came up with an idea to replace the "It Worked!" 
> page. Here is a link:
>
> https://chadwhitman.github.io/congrats/django/
>
> Some of the goals we wanted to achieve:
>
>- Provide a friendly design using the same themes as the Django 
>Project website.
>- Ensure the developer is using the current version of Django. Many 
>tutorials found through Google are for older versions of Django.
>- Provide links to the current versions of the documentation, 
>introductory polling tutorial, and community.
>- Include the release notes for the current version of Django.
>- Focus on the new Django developer, as many seasoned Django 
>developers will using other methods for starting projects.
>
>
> While it is doubtful that many would see this screen on a small device, it 
> is fully responsive as well. It is self-contained, with minified CSS and 
> SVG icons, and a total size of 20k, so it shouldn't provide much bloat at 
> all.
>
> We're looking for feedback, and if the community thinks it is an 
> improvement, we'll be happy to work on a pull request. A big hat tip to my 
> colleague Chad Whitman for his design talents.
>
> Regards,
>
> Tim
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-develop...@googlegroups.com .
> To post to this group, send email to django-d...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/CACrTqc1%3Du9oG9At%3DY-SxavYtvwTb6qN5dSAUDJL0AkxJrKvQQQ%40mail.gmail.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/3817793d-ec2e-4f8f-863b-1f17bce8220d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: A New Design for the "Congratulations!" Page

2017-04-18 Thread Ryan Hiebert
On Tue, Apr 18, 2017 at 11:27 AM Daniele Procida  wrote:

> On Tue, Apr 18, 2017, Tim Allen  wrote:
>
> >It struck me that this page is valuable real estate
>
> Yes it is! Firstly, I think that both your idea and design are excellent
> and I approve.
>
> Secondly, since that space is valuable, perhaps it could also say:
>
> This release of Django has been sponsored by . 
>
> Django is free open-source software. Support Django's development
> 
>
> The more I think about this, the less I think it's a bad idea...
>

Finding funding for open source is notoriously difficult, and if this can
turn out to be a net benefit for the project, I think this is a really neat
way to do it. Good thinking, Daniele.

One comment on the design, though, that might be worth considering. The
admin redesign that happen a few releases back originally chose to use
similar styling to djangoproject.com, but it was decided that it would be
better to keep it a blue theme instead, so that they were visually
distinctive. I think that reasoning also applies here, to keep this initial
page distinctive from the pages that are actually hosted on
djangoproject.com.

Overall, I love the idea, thanks for putting the work in.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CABpHFHSRnbUpQz3Q7E1ivZC%2BfK82gW2%3DcpKQerapSrXddPkveA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: A New Design for the "Congratulations!" Page

2017-04-18 Thread Collin Anderson
I was also reminded of green color the green color discussion.

>From the discussion about the admin redesign [0][1]:
"makes keeping a visual identity for Django hard to separate from the admin
UI"
"the admin is part of _your_ site, not ours, and so should have a
visually-distinct theme/brand that can enforce the user's theme, not ours."

I think the green might be less of an issue for this page, as end users
shouldn't see it, and really it might make sense to keep the Django brand
here, as that's what the page is all about.

[0] https://github.com/django/django/pull/4232
[1]
https://groups.google.com/d/topic/django-developers/HJAikaEBqJ4/discussion



On Tue, Apr 18, 2017 at 3:18 PM, Ryan Hiebert  wrote:

>
>
> On Tue, Apr 18, 2017 at 11:27 AM Daniele Procida  wrote:
>
>> On Tue, Apr 18, 2017, Tim Allen  wrote:
>>
>> >It struck me that this page is valuable real estate
>>
>> Yes it is! Firstly, I think that both your idea and design are excellent
>> and I approve.
>>
>> Secondly, since that space is valuable, perhaps it could also say:
>>
>> This release of Django has been sponsored by . 
>>
>> Django is free open-source software. Support Django's development
>> 
>>
>> The more I think about this, the less I think it's a bad idea...
>>
>
> Finding funding for open source is notoriously difficult, and if this can
> turn out to be a net benefit for the project, I think this is a really neat
> way to do it. Good thinking, Daniele.
>
> One comment on the design, though, that might be worth considering. The
> admin redesign that happen a few releases back originally chose to use
> similar styling to djangoproject.com, but it was decided that it would be
> better to keep it a blue theme instead, so that they were visually
> distinctive. I think that reasoning also applies here, to keep this initial
> page distinctive from the pages that are actually hosted on
> djangoproject.com.
>
> Overall, I love the idea, thanks for putting the work in.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To post to this group, send email to django-developers@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-developers.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-developers/CABpHFHSRnbUpQz3Q7E1ivZC%2BfK82gW2%
> 3DcpKQerapSrXddPkveA%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAFO84S7CGJN4GL%2BH8mJcLo6NP%3Ditb-OicKRdkfP6NDExN0ngjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: A New Design for the "Congratulations!" Page

2017-04-18 Thread Chris Foresman


On Tuesday, April 18, 2017 at 1:25:36 PM UTC-5, Tim Allen wrote:
>
> Thanks for the kind words. To answer your questions:
>
> - It is also my hope to automagically create version friendly links, so we 
> don't see a commit on each Django release.
>

This ought to be useful to sub in where necessary for doc links:

>>> import django
>>> doc_version = '.'.join(django.get_version().split('.')[:2])
>>> doc_version
'1.8'

 

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/be9dde3e-e402-4a13-912c-0372e1906863%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.