University-Code / uni-code

Site for CS students to practice algorithms
4 stars 4 forks source link

Added template to dev for project #4

Closed kailynw closed 5 years ago

kailynw commented 5 years ago

:)

grunklejp commented 5 years ago

Awesome! Everything works for me. What do you think about doing like a denim color background?

kailynw commented 4 years ago

There’s not a lot of documentation on importing media files and JavaScript files. And this was one of the only ways I could get it to work. I pretty sure you can just set the static method equal to a variable name like “media_files” and it would work. I haven’t put that much effort into making it readable

On Sun, Sep 22, 2019 at 11:44 AM JP notifications@github.com wrote:

@johnpaulkiser commented on this pull request.

In unicode/unicode/urls.py https://github.com/University-Code/uni-code/pull/4#discussion_r326907334 :

urlpatterns = [

  • path('admin/', admin.site.urls), -]
  • path('admin/', admin.site.urls,),
  • path('problems/', include("problems.urls")) +] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

@kailynw https://github.com/kailynw , what exactly is going on right here? It seems like you're telling django where your static files are or something? Given how crucial static files are to websites there must be a neater way to do this. Got any docs you can link to?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/University-Code/uni-code/pull/4?email_source=notifications&email_token=AJ22N5S7S7HO5LLMCRDJEDLQK6HGHA5CNFSM4IXGMHP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFQCUTI#pullrequestreview-291514957, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ22N5Q4ZHBFZY5YWTXQRIDQK6HGHANCNFSM4IXGMHPQ .

grunklejp commented 4 years ago

Cool, I'm gonna look into another way of doing it.