django project
I am looking for 2 people to work with me on a django project. if you are interested, email me. randmwhee...@gmail.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a86f0b6a-069b-49ec-98d1-7a9e74efbb24%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: help with URLS.PY
I resolved this. On Thursday, May 2, 2019 at 5:21:59 PM UTC-4, randmw...@gmail.com wrote: > > new to django. so i have an app that displays an html page. i also have a > menu on that page that will load up other html pages. > however, when i add the path to urls.py and then the class def in views, > it fails. i know it's something simple, what am i missing. > > As I said, the dashboard.html works, i just want another menu option to > load the other html file. i have commented this out as it causes my app to > break. > > > > urls.py > > from django.conf.urls import url > from django.contrib import admin > from django.urls import path > > from vr_reporting_app.views import HomeView > from vr_reporting_app.views import Map > > urlpatterns = [ > path('', HomeView.as_view(), name='home'),#points to the view in > views.py > #path('map/', Map.as_view(), name='map'), > > path('admin/', admin.site.urls), > ] > > > views.py > > from django.shortcuts import render > from django.views.generic.base import TemplateView > > class HomeView(TemplateView): > template_name = 'dashboard.html' > > class Map(TemplateView): > template_name = 'map.html' > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1e5029d2-a431-4c60-95ec-5ffedb11c124%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
help with URLS.PY
new to django. so i have an app that displays an html page. i also have a menu on that page that will load up other html pages. however, when i add the path to urls.py and then the class def in views, it fails. i know it's something simple, what am i missing. As I said, the dashboard.html works, i just want another menu option to load the other html file. i have commented this out as it causes my app to break. urls.py from django.conf.urls import url from django.contrib import admin from django.urls import path from vr_reporting_app.views import HomeView from vr_reporting_app.views import Map urlpatterns = [ path('', HomeView.as_view(), name='home'),#points to the view in views.py #path('map/', Map.as_view(), name='map'), path('admin/', admin.site.urls), ] views.py from django.shortcuts import render from django.views.generic.base import TemplateView class HomeView(TemplateView): template_name = 'dashboard.html' class Map(TemplateView): template_name = 'map.html' -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8ef3e2d9-799e-4803-bd20-199300b373af%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
mysql client
reading from a remote db, that uses mysql. have to install mysql client, kept failing on install, finally, i "think" with homebrew i was able to install it, at least it said it did. Now my django app, still, won't run with the db in setttings.py, when i run "runserver", it will not run, here is a snippet of what i'm seeing. return import_module('%s.base' % backend_name) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/db/backends/mysql/base.py", line 20, in ) from err django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. *Did you install mysqlclient?* *I did install msqlclient.* -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0bc879a8-81e2-42a5-ad00-518781f07cf2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
problem with url
new to django. so i have an app that displays an html page. i also have a menu on that page that will load up other html pages. however, when i add the path to urls.py and then the class def in views, it fails. i know it's something simple, what am i missing. As I said, the dashboard.html works, i just want another menu option to load the other html file. i have commented this out as it causes my app to break. urls.py from django.conf.urls import url from django.contrib import admin from django.urls import path from vr_reporting_app.views import HomeView from vr_reporting_app.views import Map urlpatterns = [ path('', HomeView.as_view(), name='home'),#points to the view in views.py #path('map/', Map.as_view(), name='map'), path('admin/', admin.site.urls), ] views.py from django.shortcuts import render from django.views.generic.base import TemplateView class HomeView(TemplateView): template_name = 'dashboard.html' class Map(TemplateView): template_name = 'map.html' -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/56e4f189-fbaf-41f5-bc33-86c5d959192c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.