Re: Django

2018-05-26 Thread m1chael
Check out icecast and a Javascript library that can support an icecast stream. There are tons of them. I can't remember the one I was using a few years ago but it worked great. On Sat, May 26, 2018, 8:24 PM Mike Dewhirst wrote: > Try googling "django audio streaming". > >

Re: Django

2018-05-26 Thread Mike Dewhirst
Try googling "django audio streaming". Django doesn't have a native audio data type but it does have a FileField which let's you get started. I'm not an expert but I think FileField plus HTML5 is probably what you really want. I found a great deal of help on the html side of things in the

Re: Is there a WYSIWYG app I can use for an inherited Django created website?

2018-05-26 Thread Mike Dewhirst
What does the website do for the visitors/users? Inheriting a site is great fun if you are getting paid. If so maybe someone here can help if you offer something. Otherwise, run pip freeze to see what apps have been installed and that together with the answer to the use-case question might

Re: Error while doing django tutorial part 2

2018-05-26 Thread Fidel Leon
Check your polls/models.py and verify you have the Question model like that: class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') Seems you are missing the question_text attribute. El sáb., 26 may. 2018 a las

Error running WSGI application

2018-05-26 Thread Kadir Guloglu
Hi friends. Can I help we please. My project getting exception. WSGI File: import os import sys path = os.path.expanduser('~/otomabak') if path not in sys.path: sys.path.append(path) os.environ['DJANGO_SETTINGS_MODULE'] = 'otomabak.settings' from django.core.wsgi import

Re: Is there a WYSIWYG app I can use for an inherited Django created website?

2018-05-26 Thread 'Anthony Flury' via Django users
Basically no. While there might be a WYSIWYG editor for the templates (which are basically HTML, JS and CSS with an embedded python like script) they will only edit the html within the template file and you won’t see the auto generated html for the individual Django fields, or the other

Error running WSGI application

2018-05-26 Thread Kadir Guloglu
Hi friends. Can I help we please. My project getting exception. Exception Detail: 2018-05-26 17:43:02,582: Error running WSGI application 2018-05-26 17:43:02,583: ModuleNotFoundError: No module named 'otomabak.settings' 2018-05-26 17:43:02,583: File

Re: Error while doing django tutorial part 2

2018-05-26 Thread Kranthi Kiran
Text of error message in case the image is not loading >>> q = Question.objects.get(pk=1) >>> q.choice_set.all() Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.6/site-packages/django/db/models/query.py", line 251,

Error while doing django tutorial part 2

2018-05-26 Thread Kranthi Kiran
Hello User, I am following django tutorial at https://docs.djangoproject.com/en/2.0/intro/tutorial02/ After modifying polls/models.py and when running python3.6 manage.py shell again I am getting the following error at the following >>> q = Question.objects.get(pk=1) # Display any choices

Is there a WYSIWYG app I can use for an inherited Django created website?

2018-05-26 Thread DjamgoNewbie
I have worked with WordPress but I inherited an already made website built with Django. Is there a WYSIWYG app that I can use to update/edit the Django site without me having to learn Django /Python first? The updates/corrections to the website are time sensitive. -- You received this

Re: Page not found (404).Please check i am unable to run server.It is showing error

2018-05-26 Thread Dylan Reinhold
You asked how to map admin to root. So yes it is correct then when you go to the root if you are not loged in you will get he admin sign on. If your goal was to map the polls application to root, then put the admin back to the way it was path('admin/', admin.site.urls), And change polls to

Re: Page not found (404).Please check i am unable to run server.It is showing error

2018-05-26 Thread Dmitry Sobolev
in this case removing "admin/" from url pattern I get the login page? Is that right? Where is the 1st page with the rocket?

Re: Problem in part 6, CSS doesn't work

2018-05-26 Thread Mikko Meronen
In PowerShell it says: [26/May/2018 17:45:14] "GET /static/polls/style.css HTTP/1.1" 404 1669 2018-05-26 17:42 GMT+03:00 Mikko Meronen : > Hi, > > Still the same problem :( > > Mikko > > 2018-05-26 17:30 GMT+03:00 Dylan Reinhold : > >> Mikko, >>

Django

2018-05-26 Thread ade desmond
How do i handle audio streaming with python and django any libraries or related tutorials will be greatly appreciated -- 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

Re: Django channels with python background tasks

2018-05-26 Thread Ryan Nowakowski
Another idea: create a Django management command that does the telnet stuff and just run that periodically via Cron. You can always move to channels or celery later. On May 26, 2018 9:33:16 AM CDT, Ryan Nowakowski wrote: >In addition to websockets, channels can be used to

Re: Problem in part 6, CSS doesn't work

2018-05-26 Thread Mikko Meronen
Hi, Still the same problem :( Mikko 2018-05-26 17:30 GMT+03:00 Dylan Reinhold : > Mikko, > Your css file is polls/static/polls/images/style.css but you are trying > to link to polls/style.css which would be [ olls/static/polls/style.css ] > > Move your style.css file one

Re: Django channels with python background tasks

2018-05-26 Thread Ryan Nowakowski
In addition to websockets, channels can be used to run background tasks that could take a long time for example a telnet connection. You can Google Django channels background tasks. An alternative to channels for background tasks is celery. On May 26, 2018 5:03:51 AM CDT, Andrew Godwin

Re: Problem in part 6, CSS doesn't work

2018-05-26 Thread Dylan Reinhold
Mikko, Your css file is polls/static/polls/images/style.css but you are trying to link to polls/style.css which would be [ olls/static/polls/style.css ] Move your style.css file one folder folder down into polls/static/polls/ style.css Dylan On Sat, May 26, 2018 at 6:52 AM, Mikko Meronen

Problem in part 6, CSS doesn't work

2018-05-26 Thread Mikko Meronen
Hi, I can't get the CSS code to work. Link color doesn't change to green nor the background image appear. What could be the problem? The CSS code is in Wordpad. polls/static/polls/images/style.css: li a { color: green; } body { background: white url("images/background.gif") no-repeat; }

Re: Page not found (404).Please check i am unable to run server.It is showing error

2018-05-26 Thread Samuel Brunel
Hi, mysite.urls: from django.contrib import admin from django.urls import path from django.urls import include urlpatterns = [ path('polls/', include('polls.urls')), # To route to ‘/' path('', admin.site.urls), ] http://127.0.0.1:8000 : Route to admin

Re: Page not found (404).Please check i am unable to run server.It is showing error

2018-05-26 Thread Dmitry Sobolev
so why the main page begins to work when we commenting this stroke even If we DON'T have an url which routes to "/" ?

Re: main page have stopped work after creating poll app

2018-05-26 Thread Dmitry Sobolev
if I comment this stroke in urls.py the main page begins to work but in this case I don't have an access to the polls app.

main page have stopped work after creating poll app

2018-05-26 Thread Dmitry Sobolev
Hello guys! I am doing 1st steps in Django. Started 1st tutorial page 3 times from there and getting the same case each time. After that, I created a working "poll app" that works under 127.0.0.1:8000/polls/ the main address stop working where should I see the problem of this problem and make

Re: Page not found (404).Please check i am unable to run server.It is showing error

2018-05-26 Thread Dmitry Sobolev
Tell us please how to rout to "/" I tried like this: path('/', admin.site.urls) and got the syntax error пятница, 25 мая 2018 г., 21:40:17 UTC+3 пользователь Fidel Leon написал: > > You may not realize it, but that's how Django works. > > From your server log: > *[25/May/2018 22:44:15] "GET

Re: Django channels with python background tasks

2018-05-26 Thread Andrew Godwin
Hi Jaiswal, I'm afraid that I can't give detailed help about what your best options are or walk you through how to do it - that's something you'll have to research and decide on yourself. Channels allows you to do low-latency communictation between Django back-ends and JavaScript, but anything

How can i send message to channel in views?

2018-05-26 Thread ????????????
I want upload an excel file to server by FileField, and then the server read data from the excel and update the database in a view. the problem is that the database updating may sustain a long time, i want send the progress to the browser. i think django channel may be a good choice, but i

Django channels with python background tasks

2018-05-26 Thread Sourabh Jaiswal
Hi, I am writing a python based application(CLI Back End) which does telnet to some network components and gets some data. It saves the data in sqlite db. For this application I am writing Django based frond end. Which will start the CLI app and monitor it. For communication between the