1
0
Fork 0
satnogs-db/db/base/urls.py

60 lines
2.3 KiB
Python
Raw Permalink Normal View History

"""Django base URL routings for SatNOGS DB"""
from django.urls import path, re_path
2015-04-22 05:05:30 -06:00
2016-02-03 13:14:07 -07:00
from db.base import views
BASE_URLPATTERNS = (
[
path('', views.home, name='home'),
path('about/', views.about, name='about'),
path('satellites/', views.satellites, name='satellites'),
re_path(
r'^satellite/(?P<sat_id>[A-Z]{4,4}(?:-\d\d\d\d){4,4})/$',
views.satellite,
name='satellite'
),
path('satellite/<int:norad>/', views.satellite, name='satellite'),
path(
'satellite_suggestion_handler/',
views.satellite_suggestion_handler,
name='satellite_suggestion_handler'
),
path('frames/<int:sat_pk>/', views.request_export, name='request_export_all'),
path('frames/<int:sat_pk>/<int:period>/', views.request_export, name='request_export'),
path('help/', views.satnogs_help, name='help'),
path(
'transmitter_suggestion_handler/',
New SatNOGS DB user interface Initial commit of new UI. There is still some work to be done before this goes into dev, but here is the work so far: * Updated dependencies to latest 2.x django * Updated to Bootstrap 4 * New home screen to display most recent satellite entries, most recent data, and contributors * Adopted django-bootstrap-modal-forms for handling satellite and transmitter creation and update, with more of an emphasis on django's model/view/form model - and a dynamic flow where the modals and details are only loaded when the proper icon is clicked, reducing the overall page size * Adopted AdminLTE 3.x framework atop Bootstrap 4 * Created reusable cards for satellite and transmitters * Cards and Modals are organized into subdirectories for template includes and base templates, respectively * New stats display widgets using BS4 and AdminLTE 3 * Satellite search is redesigned and now accessible from any page of the site * Introduced datatables for an "All Satellites" view and a modification of the new "All Transmitters" view * Focus on all UI scaling down to mobile devices * New model created for Operator (/ Owner): name, names, description, website * Added django-countries for support of CountryField * Satellite model expanded to include: Operator, (satellite) website, countries, launched datetime, deployed datetime * Transmitter suggestions can now be approved in the UI by superusers * Satellite entries can now be edited in the UI by users with the change satellite permission * Satellite page is now broken into 'tabbed' panels (Profile, Map, Transmitters, etc) - with the tab menu options appearing in the sidebar or at the top depending on screen size * Other cleanup and changes that I'm missing for sure. Signed-off-by: Corey Shields <cshields@gmail.com>
2020-07-25 16:08:44 -06:00
views.transmitter_suggestion_handler,
name='transmitter_suggestion_handler'
),
path('transmitters/', views.transmitters_list, name='transmitters_list'),
path('statistics/', views.statistics, name='statistics'),
path('stats/', views.stats, name='stats'),
path('users/edit/', views.users_edit, name='users_edit'),
path('robots.txt', views.robots, name='robots'),
path('search/', views.search, name='search_results'),
path('merge_satellites/', views.MergeSatellitesView.as_view(), name='merge_satellites'),
path('create_satellite/', views.SatelliteCreateView.as_view(), name='create_satellite'),
path(
'update_satellite/<int:pk>/',
views.SatelliteUpdateView.as_view(),
New SatNOGS DB user interface Initial commit of new UI. There is still some work to be done before this goes into dev, but here is the work so far: * Updated dependencies to latest 2.x django * Updated to Bootstrap 4 * New home screen to display most recent satellite entries, most recent data, and contributors * Adopted django-bootstrap-modal-forms for handling satellite and transmitter creation and update, with more of an emphasis on django's model/view/form model - and a dynamic flow where the modals and details are only loaded when the proper icon is clicked, reducing the overall page size * Adopted AdminLTE 3.x framework atop Bootstrap 4 * Created reusable cards for satellite and transmitters * Cards and Modals are organized into subdirectories for template includes and base templates, respectively * New stats display widgets using BS4 and AdminLTE 3 * Satellite search is redesigned and now accessible from any page of the site * Introduced datatables for an "All Satellites" view and a modification of the new "All Transmitters" view * Focus on all UI scaling down to mobile devices * New model created for Operator (/ Owner): name, names, description, website * Added django-countries for support of CountryField * Satellite model expanded to include: Operator, (satellite) website, countries, launched datetime, deployed datetime * Transmitter suggestions can now be approved in the UI by superusers * Satellite entries can now be edited in the UI by users with the change satellite permission * Satellite page is now broken into 'tabbed' panels (Profile, Map, Transmitters, etc) - with the tab menu options appearing in the sidebar or at the top depending on screen size * Other cleanup and changes that I'm missing for sure. Signed-off-by: Corey Shields <cshields@gmail.com>
2020-07-25 16:08:44 -06:00
name='update_satellite'
),
path(
'create_transmitter/<int:satellite_pk>',
views.TransmitterCreateView.as_view(),
name='create_transmitter'
),
path(
'update_transmitter/<int:pk>',
views.TransmitterUpdateView.as_view(),
name='update_transmitter'
),
path(
'ajax/recent_decoded_cnt/<int:norad>',
views.recent_decoded_cnt,
name='recent_decoded_cnt'
),
]
)