Skip to content

Remove donate app from RTD itself #3184

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Oct 24, 2017
Merged

Remove donate app from RTD itself #3184

merged 5 commits into from
Oct 24, 2017

Conversation

ericholscher
Copy link
Member

@ericholscher ericholscher commented Oct 24, 2017

This splits out the donate app from RTD, so that we don't ship our ad code to all the OSS users who don't care about it.

The actual changes are at the bottom, just some URL adjustments.

@ericholscher ericholscher added the PR: work in progress Pull request is not ready for full review label Oct 24, 2017
@@ -44,6 +44,7 @@
url(r'^accounts/', include('readthedocs.profiles.urls.private')),
url(r'^accounts/', include('allauth.urls')),
url(r'^notifications/', include('readthedocs.notifications.urls')),
url(r'^accounts/gold/', include('readthedocs.gold.urls')),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other question is do we move Gold out as well, and keep it gated in a similar way?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventually, +1 from me. We can address this separately. Feel free to open a ticket to track the work.

Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just gave this a quick glance due to 100% deletes and size. We should make sure dependencies are removed and added to the setup.py in ext, along with any other missing depends. There are probably a number of depends that are just coming from rtfd/readthedocs.org requirements.


from __future__ import absolute_import
from django.db import models, migrations
import django_countries.fields
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove this dependency? We can probably move this to the ext repo if so.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep.

PROMO_GEO_PATH = getattr(settings, 'PROMO_GEO_PATH', None)

if PROMO_GEO_PATH:
import geoip2.database # noqa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same on this import

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Believe that is installed via ops.

@ericholscher
Copy link
Member Author

🎆

@ericholscher ericholscher merged commit fbe860f into master Oct 24, 2017
@ericholscher ericholscher removed the PR: work in progress Pull request is not ready for full review label Oct 24, 2017
@stsewd stsewd deleted the add-donate branch August 15, 2018 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants