Skip to content

Commit

Permalink
Increase site and tel id character limits, disable public admin login…
Browse files Browse the repository at this point in the history
…, change some default documentation urls for PTR
  • Loading branch information
darrenhunt2 committed Jan 27, 2023
1 parent 62ac5e5 commit e5482ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions archive/frames/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ class Frame(models.Model):
)
site_id = models.CharField(
default='',
max_length=3,
help_text="Originating site code. Usually the 3 character airport code of the nearest airport"
max_length=9,
help_text="Originating site code"
)
telescope_id = models.CharField(
default='',
max_length=4,
help_text="Originating telescope 4 character code. Ex. 1m0a or 0m4b"
max_length=9,
help_text="Originating telescope character code. Ex. 1m0a or 0m4b"
)
exposure_time = models.FloatField(
null=True,
Expand Down
6 changes: 3 additions & 3 deletions archive/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,10 @@
# Additional Customization
ZIP_DOWNLOAD_FILENAME_BASE = os.getenv('ZIP_DOWNLOAD_FILENAME_BASE', 'ocs_archive_data')
ZIP_DOWNLOAD_MAX_UNCOMPRESSED_FILES = int(os.getenv('ZIP_DOWNLOAD_MAX_UNCOMPRESSED_FILES', 10))
NAVBAR_TITLE_TEXT = os.getenv('NAVBAR_TITLE_TEXT', 'Science Archive API')
NAVBAR_TITLE_URL = os.getenv('NAVBAR_TITLE_URL', 'https://archive.lco.global')
NAVBAR_TITLE_TEXT = os.getenv('NAVBAR_TITLE_TEXT', 'PTR Archive API')
NAVBAR_TITLE_URL = os.getenv('NAVBAR_TITLE_URL', 'https://dev.photonranch.org/')
TERMS_OF_SERVICE_URL = os.getenv('TERMS_OF_SERVICE_URL', 'https://lco.global/policies/terms/')
DOCUMENTATION_URL = os.getenv('DOCUMENTATION_URL', 'https://observatorycontrolsystem.github.io/api/science_archive/')
DOCUMENTATION_URL = os.getenv('DOCUMENTATION_URL', 'https://github.com/LCOGT/photonranch-archive/')
PAGINATION_DEFAULT_LIMIT = int(os.getenv('PAGINATION_DEFAULT_LIMIT', 100))
PAGINATION_MAX_LIMIT = int(os.getenv('PAGINATION_MAX_LIMIT', 1000))

Expand Down
2 changes: 1 addition & 1 deletion archive/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
url(r'^robots.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: /", content_type='text/plain')),
url(r'^', include(frame_urls)),
url(r'^', include(auth_urls)),
url(r'^admin/', admin.site.urls),
#url(r'^admin/', admin.site.urls),
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
url(r'^api-token-auth/', ObtainAuthTokenWithHeaders.as_view()),
url(r'^revoke_token/', RevokeApiTokenApiView.as_view(), name='revoke_api_token'),
Expand Down

0 comments on commit e5482ab

Please sign in to comment.