Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update INSTAGRAM_FETCH_COUNT variable to match the value in the docum…

…entation.

Update callback authorization template to not show some sensitive data.
  • Loading branch information...
commit a4543063634410488b0ca2b068cf44c7b5d151ea 1 parent 0d39fbc
@georgeyk authored
View
2  mezzanine_instagram_gallery/management/commands/sync_instagram_medias.py
@@ -32,7 +32,7 @@ class Command(BaseCommand):
def handle(self, *args, **kwargs):
gallery_slug = settings.INSTAGRAM_GALLERIES[0][0]
gallery = Gallery.objects.get(slug=gallery_slug)
- count = getattr(settings, 'INSTAGRAM_FETCH_COUNT', 20)
+ count = getattr(settings, 'INSTAGRAM_FETCH_COUNT', 50)
for media in InstagramMedia.fetch_medias(count):
media.save()
media.to_mezzanine(gallery).save()
View
7 mezzanine_instagram_gallery/templates/mezzanine_instagram_gallery/callback.html
@@ -4,9 +4,10 @@
<h2>Mezzanine Instagram Gallery</h2>
<div>
<h3>Successfull authorization!</h3>
- <label>username:</label><p>{{ user.username }}</p>
- <label>instagram_id</label><p>{{ user.instagram_id }}</p>
- <label>access_token:</label><p>{{ user.access_token }}</p>
+ <p>Now you can run the management command get your images from instagram:</p>
+ <pre>
+ $ python manage.py sync_instagram_medias
+ </pre>
</div>
<p>Enjoy! =)</p>
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.