Crags.pk

@crags @website @django @mtnpak

Server setup
Deployment
Maintenance

TODO:

  • Make a geographic query option (popdown or something).
  • Update templates so that permission restricted links don't appear for all users (already secured in views)
  • Create starter entries in DB for fresh deploy (cities, grades, groups, ...)
  • Fix grade and rating filters so they don't freak out if there is no grade or rating object for a route/crag


DEV NOTES:


PERMISSIONS:

This is a running list of permissions I am using. Groups to be created accordingly. The groups are shown hierarchichally, so every group also includes the permissions of all the groups below it. A group will not have permissions of the group above it.

Superuser

Superuser is god.
  • ALL PERMISSIONS

Moderators

Moderators don't really have a use yet.

Verified users

Verified users can add routes, crags, and pitches. These permissions should always be assigned together (always as part of a group).
  • routes.can_add
  • crags.can_add
  • pitches.can_add

Non-verified users

Anonymous users can use the site, leave comments and add ascents, but can not modify or add anything else.
  • comments.can_add
  • comments.can_edit
  • ascents.can_add

FIXTURES:

A bunch of thigns should be prepopulated at first deploy:

  • grades (all the grade objects from 1 to 9c)
  • groups (the user permission groups)