datadesk / django-bigbuild

The open-source engine that powers bigbuilder, the Los Angeles Times Data Desk's system for publishing standalone pages
http://www.latimes.com/projects/
MIT License
24 stars 0 forks source link

Figure out a way to abstract things back and not have to have url[1:] all over the app #16

Closed palewire closed 7 years ago

palewire commented 7 years ago

Here's where I can find it in the app with a grep.

./bigbuild/urls.py:        r'^{0}$'.format(get_base_url()[1:]),
./bigbuild/urls.py:        r'^{0}(?P<slug>[-\w]+)/$'.format(get_base_url()[1:]),
./bigbuild/urls.py:        r'^{0}(?P<slug>[-\w]+)/static/(?P<path>.*)$'.format(get_base_url()[1:]),
./bigbuild/urls.py:        r'^{0}sitemap.xml$'.format(get_base_url()[1:]),
./bigbuild/urls.py:        r'^{0}google-news-sitemap.xml$'.format(get_base_url()[1:]),
./bigbuild/urls.py:        r'^{0}feeds/latest.xml$'.format(get_base_url()[1:]),
./bigbuild/views.py:    build_path = os.path.join(get_base_url()[1:], "robots.txt")
./bigbuild/views.py:            obj.get_static_url()[1:]
./bigbuild/views.py:            target = os.path.join(self.get_build_directory(), obj.get_absolute_url()[1:])
./bigbuild/management/commands/retirepage.py:                os.path.join(self.get_build_directory(), p.get_absolute_url()[1:]),
./bigbuild/tests.py:                PageList()['my-fake-page'].get_absolute_url()[1:],