Django Music streaming
Hi, i'm new to django.. I want to make a music streaming service much like itunes where users can purchase and download music. I'm using the audiotracks django package to handle my upload and streaming, but im having trouble with it.. any pointers? -- 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/02e8c8b0-8490-42d1-a384-d5390261a0ad%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Django Music streaming
> > setting up audiotracks in a new project.. im forced to use the example > project, whose structure i don't fully understand.. the documentation says.. Add ``audiotracks`` to your app ~~~ Edit ``settings.py`` and add ``audiotracks`` to your list of ``INSTALLED_APPS``. Then synchronize your database with:: $ python manage.py syncdb Edit your ROOT_URLCONF_ and add a piece of code similar to:: urlpatterns += patterns('', # Here we mount the app under /music. Feel free to use something else url("^music", include("audiotracks.urls")), # Some URLs require a Django username url("^(?P[\w\._-]+)/music", include("audiotracks.urls")), ) Visit the URL ``/music/upload`` to upload your first track. but i get an error everytime i try -- 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/25f1645f-6b80-435d-9bd5-8ccf26742db4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Django music streaming app using audiotracks..
Hi, I'm relatively new to django.. I'm trying to integrate the audiotracks package with my project. I'm trying to integrate the audiotracks package but I'm getting NoReverseMatch error. The documentation states.. *Add ``audiotracks`` to your app~~~Edit ``settings.py`` and add ``audiotracks`` to your list of``INSTALLED_APPS``. Then synchronize your database with::$ python manage.py syncdbEdit your ROOT_URLCONF_ and add a piece of code similar to::urlpatterns += patterns('',# Here we mount the app under /music. Feel free to use something elseurl("^music", include("audiotracks.urls")),# Some URLs require a Django username url("^(?P[\w\._-]+)/music", include("audiotracks.urls")), )Visit the URL ``/music/upload`` to upload your first track*. the error occurs when i try to access music/upload.. here's the full traceback. Environment: Request Method: GET Request URL: http://127.0.0.1:8000/music/upload Django Version: 1.11.3 Python Version: 3.6.0 Installed Applications: ['account', 'music', 'audiotracks', 'django.contrib.sites', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles'] Installed Middleware: ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.SessionAuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] Template error: In template C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django_audiotracks-0.2.5-py3.6.egg\audiotracks\templates\audiotracks\base.html, error at line 25 Reverse for 'user_index' with arguments '('addemo1',)' not found. 2 pattern(s) tried: ['music/tracks/(?P\\d)/?$', 'music/tracks$'] 15 : .errorlist { color: red; list-style: none; display: inline; } 16 : 17 : {% block extra_head %}{% endblock %} 18 : 19 : 20 : 21 : {% block subnav %} 22 : {% if user.is_authenticated %} 23 : 24 : {% trans 'Latest tracks' %} 25 : {% trans 'Your tracks' %} 26 : {% trans 'Upload track' %} 27 : 28 : {% else %} 29 : 30 : {% endif %} 31 : {% endblock %} 32 : 33 : {% if messages %} 34 : 35 : {% for message in messages %} Traceback: File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\exception.py" in inner 41. response = get_response(request) File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py" in _legacy_get_response 249. response = self._get_response(request) File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\core\handlers\base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\contrib\auth\decorators.py" in _wrapped_view 23. return view_func(request, *args, **kwargs) File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\views\decorators\csrf.py" in wrapped_view 58. return view_func(*args, **kwargs) File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django_audiotracks-0.2.5-py3.6.egg\audiotracks\views.py" in upload_track 109. return render(request, "audiotracks/new.html", {'form': form}) File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\shortcuts.py" in render 30. content = loader.render_to_string(template_name, context, request, using=using) File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\loader.py" in render_to_string 68. return template.render(context, request) File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\backends\django.py" in render 66. return self.template.render(context) File "C:\Users\Alexander\AppData\Local\Programs\Python\Python36-32\lib\site-packages\django\template\base.py" in render 207. return self._render(context) File "C:\Users\Al
Django-cms KeyError at /en/cms_wizard/create/
Hi, I'm getting this error when i try to create a new page. here's the traceback.. any ideas on how to fix this? Environment: Request Method: GET Request URL: http://127.0.0.1:8000/en/cms_wizard/create/?language=en Django Version: 1.11.3 Python Version: 3.6.0 Installed Applications: ('djangocms_admin_style', 'django.contrib.auth', 'django.contrib.contenttypes' , 'django.contrib.sessions', 'django.contrib.admin', 'django.contrib.sites', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'cms', 'menus', 'sekizai', 'treebeard', 'djangocms_text_ckeditor', 'filer', 'easy_thumbnails', 'djangocms_column', 'djangocms_link', 'cmsplugin_filer_file', 'cmsplugin_filer_folder', 'cmsplugin_filer_image', 'cmsplugin_filer_utils', 'djangocms_style', 'djangocms_snippet', 'djangocms_googlemap', 'djangocms_video', 'mysite') Installed Middleware: ('cms.middleware.utils.ApphookReloadMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware') Template error: In template C:\Users\Alexander\Desktop\v1\lib\site-packages\django\contrib\admin\templates\admin\base.html, error at line 0 1 : {% load i18n static %} 2 : {% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} 3 : 4 : 5 : {% block title %}{% endblock %} 6 : 7 : {% block extrastyle %}{% endblock %} 8 : {% if LANGUAGE_BIDI %}{% endif %} 9 : {% block extrahead %}{% endblock %} 10 : {% block blockbots %}{% endblock %} Traceback: File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\core\handlers\exception.py" in inner 41. response = get_response(request) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\core\handlers\base.py" in _legacy_get_response 249. response = self._get_response(request) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\core\handlers\base.py" in _get_response 217. response = self.process_exception_by_middleware(e, request) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\core\handlers\base.py" in _get_response 215. response = response.render() File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\response.py" in render 107. self.content = self.rendered_content File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\response.py" in rendered_content 84. content = template.render(context, self._request) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\backends\django.py" in render 66. return self.template.render(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\base.py" in render 207. return self._render(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\base.py" in _render 199. return self.nodelist.render(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\base.py" in render 990. bit = node.render_annotated(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\base.py" in render_annotated 957. return self.render(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\loader_tags.py" in render 177. return compiled_parent._render(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\base.py" in _render 199. return self.nodelist.render(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\base.py" in render 990. bit = node.render_annotated(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\base.py" in render_annotated 957. return self.render(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\loader_tags.py" in render 177. return compiled_parent._render(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\base.py" in _render 199. return self.nodelist.render(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\base.py" in render 990. bit = node.render_annotated(context) File "C:\Users\Alexander\Desktop\v1\lib\site-packages\django\template\base.py" in render_annotated 957. return self.render(context) File "C: