Re: How to change Mysql server port for using two instances of mysql when running Django code

2022-01-15 Thread Khánh Hoàng
Thank you!! Vào lúc 00:20:44 UTC+7 ngày Thứ Bảy, 15 tháng 1, 2022, Kasper Laudrup đã viết: > On 14/01/2022 09.18, Khánh Hoàng wrote: > > I want to change mysql server port in 2 different instances of Mysql, > > one for WSL and one for Windows. How can I do it? > > > > https://dev.mysql.com/doc

Re: How to change Mysql server port for using two instances of mysql when running Django code

2022-01-14 Thread Kasper Laudrup
On 14/01/2022 09.18, Khánh Hoàng wrote: I want to change mysql server port in 2 different instances of Mysql, one for WSL and one for Windows. How can I do it? https://dev.mysql.com/doc/refman/8.0/en/multiple-servers.html Kind regards, Kasper Laudrup -- You received this message because yo

How to change Mysql server port for using two instances of mysql when running Django code

2022-01-14 Thread Khánh Hoàng
Hi everyone, I'm new to Django, I'm trying to run Python code using Django framework, I'm on Windows and want to try Redis, because Redis doesn't support Windows machines so I want to run it with WSL I want to change mysql server port in 2 different instances of Mysql, one for WSL and one for

Re: Error running Django tutorial

2020-07-20 Thread Lithium
In in mysite/urls.py check the "/" after "polls" in this line: path('polls/', include('polls.urls')) On Friday, June 12, 2020 at 4:52:52 PM UTC+4:30 temitope iyanoye wrote: > I’m using Django 3.0 and I have this same issue following the official > Django tutorial, has anyone been able to fix i

Re: Error running Django tutorial

2020-06-12 Thread temitope iyanoye
I’m using Django 3.0 and I have this same issue following the official Django tutorial, has anyone been able to fix it? Please I need help, thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Page 404 error after running Django server

2020-05-04 Thread Deepti sharma
Thanks everyone. I updated HttpRequest with HttpResponse. Then in urls.py: I did: path(‘’, views.welcome) Its working now On Mon, May 4, 2020 at 3:06 PM Nomeh Uchenna Gabriel < nomehgabri...@gmail.com> wrote: > Hi! you're just visiting a different url from what you specified in your > "urls.py"

Page 404 error after running Django server

2020-05-04 Thread Nomeh Uchenna Gabriel
Hi! you're just visiting a different url from what you specified in your "urls.py" file. look closely at the routes "django" is telling you that it tried: [admin/, welcome.html/] ... these are truly the two paths that you specified, why on earth are you trying to visit a non-existing path(http

Re: Page 404 error after running Django server

2020-05-04 Thread Jorge Gimeno
I just realized that the view is returning an HttpRequest. It should be an HttpResponse object (and the import should be changed to bring that object in as well). -Jorge On Mon, May 4, 2020 at 11:43 AM Deepti sharma wrote: > @rdsaini...@gmail.com > I updated it with: path("welcome/",views.welc

Re: Page 404 error after running Django server

2020-05-04 Thread 'Amitesh Sahay' via Django users
Please import HttpResponse ,  HttpRequest will not work Sent from Yahoo Mail on Android On Tue, 5 May 2020 at 0:14, Amitesh Sahay wrote: path("", views.welcome) This should work Sent from Yahoo Mail on Android On Tue, 5 May 2020 at 0:13, Deepti sharma wrote: @rdsaini...@gmail.com 

Re: Page 404 error after running Django server

2020-05-04 Thread 'Amitesh Sahay' via Django users
path("", views.welcome) This should work Sent from Yahoo Mail on Android On Tue, 5 May 2020 at 0:13, Deepti sharma wrote: @rdsaini...@gmail.com I updated it with: path("welcome/",views.welcome),But  no success. Error at http://127.0.0.1:8000/welcome : TypeError at /welcome/ __init__() ta

Re: Page 404 error after running Django server

2020-05-04 Thread Deepti sharma
@rdsaini...@gmail.com I updated it with: path("welcome/",views.welcome), But no success. Error at http://127.0.0.1:8000/welcome : TypeError at /welcome/ __init__() takes 1 positional argument but 2 were given Request Method: GET Request URL: http://127.0.0.1:8000/welcome/ Django Version: 3.0.5

Re: Page 404 error after running Django server

2020-05-04 Thread R D Saini
path("welcome/",views.welcom), On Mon 4 May, 2020, 11:42 PM 'Amitesh Sahay' via Django users, < django-users@googlegroups.com> wrote: > There are lots of issues with urls.py > Please go through the django documents on how to write urls.py > > Sent from Yahoo Mail on Android >

Re: Page 404 error after running Django server

2020-05-04 Thread Deepti sharma
Hi, I did replace it with: path('',welcome) But it's still no working: Page not found (404) Request Method: GET Request URL: http://127.0.0.1:8000/welcome Using the URLconf defined in meeting_planner.urls, Django tried these URL patterns, in this order: 1. admin/ 2. The current path, welc

Re: Page 404 error after running Django server

2020-05-04 Thread Franz Ulenaers
pleae change your urls.py as follow urlpatterns = [ path('admin/', admin.site.urls), path('', welcome) ] Op maandag 4 mei 2020 20:09:51 UTC+2 schreef Deepti sharma: > > Hi, I have just started learning django and was trying to make a meeting > planner project y folllowing a course. > I

Re: Page 404 error after running Django server

2020-05-04 Thread franz ulenaers
path('welcome.html', welcome) should be : path('', welcome) Op 4/05/2020 om 20:11 schreef 'Amitesh Sahay' via Django users: There are lots of issues with urls.py Please go through the django documents on how to write urls.py Sent from Yahoo Mail on Android

Re: Page 404 error after running Django server

2020-05-04 Thread 'Amitesh Sahay' via Django users
There are lots of issues with urls.pyPlease go through the django documents on how to write urls.py Sent from Yahoo Mail on Android On Mon, 4 May 2020 at 23:39, Deepti sharma wrote: Hi, I have just started learning django and was trying to make a meeting planner project y folllowing a co

Page 404 error after running Django server

2020-05-04 Thread Deepti sharma
Hi, I have just started learning django and was trying to make a meeting planner project y folllowing a course. I updated the setting.py file to add website into Instaled_Apps. Then have written a function named welcome in views.py Finally I added it's entry into urls.py fie But when I run the se

Re: Error running Django tutorial

2020-03-25 Thread Thomas Pittman
Kyle D, This is why I stay in this thread. Thanks for the heads up. I remember being so lost when I tried to start teaching myself Django. What's the class for? Regards On Tue, Mar 24, 2020 at 10:46 PM kyle D wrote: > I'm using Django for a class, and came across this thread and thought I'd >

Re: Error running Django tutorial

2020-03-24 Thread kyle D
I'm using Django for a class, and came across this thread and thought I'd post what fixed it for me in case someone else has the same issue I did. Makes sure your mysite/urls.py is the one that has the urlpatterns[] with the path to your polls and not the mysite/polls/urls.py. This one: urlpatt

Re: Running django admin separately

2020-02-29 Thread Agumba .
My main aim is to run separate instances of the django.admin and drf API On Sun, Mar 1, 2020, 04:23 Stephen J. Butler wrote: > I think so. Haven't tested, one way should be be to have have two > url.py's, one that includes only the admin URLs and one that includes only > your project URLs. Then

Re: Running django admin separately

2020-02-29 Thread Stephen J. Butler
I think so. Haven't tested, one way should be be to have have two url.py's, one that includes only the admin URLs and one that includes only your project URLs. Then have two settings modules that look like this: # main site settings from .settings import * ROOT_URLCONF = 'myproject.urls_main' #

Running django admin separately

2020-02-29 Thread Agumba
Hello django users is there a way i can run django-admin separately from the main site like separate instances..any help will be appreciated -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving

Re: Getting this error with running django server

2020-02-08 Thread Kasper Laudrup
Hi "python stories" On 08/02/2020 10.43, python stories wrote:   File "C:\Users\user\PycharmProjects\pyshop\pyshop\urls.py", line 17     from django.urls import path path, include                                  ^ SyntaxError: invalid syntax Can anyone help me out. Many thanks! The erro

Getting this error with running django server

2020-02-08 Thread python stories
C:\Users\user\PycharmProjects\pyshop>py manage.py runserver Watching for file changes with StatReloader Performing system checks... Exception in thread django-main-thread: Traceback (most recent call last): File "C:\Python38\lib\threading.py", line 932, in _bootstrap_inner self.run() File

Re: Problem with running Django with nginx and uwsgi in Ubuntu

2019-07-26 Thread אורי
Thanks for your suggestions, I'll try it. אורי u...@speedy.net > > -- 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

Re: Problem with running Django with nginx and uwsgi in Ubuntu

2019-07-26 Thread Kean Dumba
Thanks Aldian, The community have reached out to me with thoughts, as well as guidance, I.e. django for girls, django forums and github These resources have made a significant difference, things are working and I’m slowly learning. the community are welcoming, knowledgable, helpful and patient,

Re: Problem with running Django with nginx and uwsgi in Ubuntu

2019-07-26 Thread Joseph Msembi
Try this documentation. https://uwsgi-docs.readthedocs.io/en/latest/tutorials/Django_and_nginx.html On Fri, Jul 26, 2019, 15:28 אורי wrote: > Django users, > > I'm trying to install a new server, and I can't run Django with nginx and > uwsgi. I receive an error "502 Bad Gateway" and there are me

Re: Error running Django tutorial

2019-07-24 Thread Will Brown
Thank you. I think this is the issue for many of us... mysite/ On Friday, January 4, 2019 at 4:38:47 AM UTC-8, Nitin Tiwari wrote: > > I just wanna, explain my experience, in the official tutorial > https://docs.djangoproject.com/en/2.1/intro/tutorial01/ >

Re: Running Django 2.2.3 in Apache2

2019-07-17 Thread Yoo
https://www.sysadmin.md/deploy-django-in-production-using-apache-nginx-and-mod-wsgi.html https://stackoverflow.com/questions/18048318/apache-mod-wsgi-vs-nginx-gunicorn There are several fantastic tutorials online regarding apache2 and mod_wsgi. A simple google search with the keywords apache2 and

Re: Running Django 2.2.3 in Apache2

2019-07-17 Thread Ing.Daniel Bojorge
I hope be useful for you https://debsconsultores.blogspot.com/2018/12/deploy-django-21-en-ubuntu-server-1804.html I have class in video in the course in Udemy, all in spanish Dios L@s Bendiga Saludos, [image: --] daniel.bojorge [image: http://]about.me/daniel.bojorge

Running Django 2.2.3 in Apache2

2019-07-17 Thread Block QAI
Group, We have been working for days attempting to get Django to run under apache2 on a Ubuntu 18.04 server. Are there ANY clear documentation with steps we ,could leverage to ensure a successful, simple, direct install. Very much appreciate the assistance. -- You received this message beca

Re: Dispatching requests from one uwsgi to another uwsgi instance running Django Channels

2019-03-23 Thread Ahmed Ishtiaque
Awesome! Sorry I couldn't reply earlier. To explain myself a little better, I use gunicorn to handle all HTTP requests to my server and daphne to handle all WebSocket requests. This isn't necessary since daphne can do both by itself, but the Deploying

Re: Dispatching requests from one uwsgi to another uwsgi instance running Django Channels

2019-03-23 Thread Adam Zedan
YES it worked. I used Daphne with nginx and it worked. Thank you. On Friday, March 22, 2019 at 5:58:20 PM UTC-7, Adam Zedan wrote: > > I am currently using Django channels for websocket communication. I read > this >

Re: Dispatching requests from one uwsgi to another uwsgi instance running Django Channels

2019-03-23 Thread Adam Zedan
Hi Ahmed I am a little confused here. I was using NGINX and uwsgi. Now based on your response i decided to use Daphne.. So Now I have NGINX with Daphne. I am not sure where gunicorn fits in here . I am following this tutorial. E

Re: Dispatching requests from one uwsgi to another uwsgi instance running Django Channels

2019-03-22 Thread Ahmed Ishtiaque
Aldian has pointed it out already, but I also use Nginx + gunicorn + daphne for my production server. Nginx decides when to upgrade a request to wss:// and passes it on to my daphne instance to handle automatically. Would be happy to share my config for that if you want. Best, Ahmed On Fri, Mar 2

Re: Dispatching requests from one uwsgi to another uwsgi instance running Django Channels

2019-03-22 Thread Aldian Fazrihady
Does it really use Django channels? I am using Django channels and following its suggested package: ASGI provided by Daphne Regards, Aldian Fazrihady On Sat, 23 Mar 2019, 07:58 Adam Zedan, wrote: > I am currently using Django channels for websocket communication. I read > this >

Dispatching requests from one uwsgi to another uwsgi instance running Django Channels

2019-03-22 Thread Adam Zedan
I am currently using Django channels for websocket communication. I read this article and it states that I should split the project into two uwsgi instances. It stat

Re: Error running Django tutorial

2019-01-04 Thread Nitin Tiwari
I just wanna, explain my experience, in the official tutorial https://docs.djangoproject.com/en/2.1/intro/tutorial01/ when they tell you to edit urls file of mysite directorythey didnt mention which one. And in the beginning of tutorial

Re: Error running Django tutorial

2018-09-21 Thread Asong nkemzi
I figured it out thanks Guys! like every one else I just added my app string to the application VARIABLE in *mysite/settings.py * works fabulously On Fri, Sep 21, 2018 at 7:43 AM John Meyer wrote: > I have been testing this tutorial frequently over the last few days (with > success) and am usin

Re: Error running Django tutorial

2018-09-21 Thread John Meyer
I have been testing this tutorial frequently over the last few days (with success) and am using an empty string ( ‘’ ) for the route (first argument to path) in the app’s urls.py, rather than the ‘raw’ string value I see in the earlier posts here. -- You received this message because you are

Re: Error running Django tutorial

2018-09-20 Thread Joel
Show the urls.py after adding everything. Note that there must be two urls.py. One in the project folder, another in the app folder On Fri 21 Sep, 2018, 12:18 AM Asong nkemzi, wrote: > Hello, Ruth did you ever solve this problem? I am experiencing exactly the > same issue > > On Thursday, March

Re: Error running Django tutorial

2018-09-20 Thread Asong nkemzi
Hello, Ruth did you ever solve this problem? I am experiencing exactly the same issue On Thursday, March 17, 2016 at 4:07:11 PM UTC-4, Ruth wrote: > > I am getting the very same problem, despite adding include to my > mysite\urls.py file. > I am using Python 2.7.6, Django 1.9.4 and Ubuntu 14.04.

Re: Running django tests with postgres

2018-09-18 Thread Mike Dewhirst
Bill I'm about to disappear for a few days. Thank you very much for your suggestions - I'll tackle them when I get back. Cheers Mike On 18/09/2018 11:34 PM, Bill-Torcaso-Oxfam wrote: I two comments, and as always Your Milage May Vary. * I wonder if you have the right indexes on your Pos

Re: Running django tests with postgres

2018-09-18 Thread Bill-Torcaso-Oxfam
I two comments, and as always Your Milage May Vary. - I wonder if you have the right indexes on your Postgres database? The previous people report much faster completion times for test that use Postgres as the database. Perhaps your domain is just hard (and you description makes

Re: Running django tests with postgres

2018-09-15 Thread Mike Dewhirst
My software classifies chemical hazards according to intrinsic physical properties. This requires accessing large quantities of reference data imported from jurisdictions around the world. The tests demand correct classification for known properties. There are dozens of different classificatio

Re: Running django tests with postgres

2018-09-15 Thread Jason
Agreed. Something is definitely off. At work, the legacy monolith django app has about 7800 tests. It takes about 18 minutes to run the full test suite in docker with the latest MBP (four cores, 5GB RAM allocated in docker machine), including creating the db and four parallel test streams ru

Re: Running django tests with postgres

2018-09-15 Thread Andréas Kühne
I would just be scared that some minor issues are different between the database implementations - therefore some test that would work in the tests and during development, doesn't work in production. I usually try to use the same things in production and development (or as close as possible). Tha

Re: Running django tests with postgres

2018-09-14 Thread Mike Dewhirst
+1 Andréas One of my projects runs (currently) 1,248 tests using SQLite3 in 72 minutes on my local Windows 10 dev laptop. That laptop has both a SSD and a hard disk. Foolishly I opted to use the SSD for software installations and the hard disk for development and thus the tests. I was concern

Re: Running django tests with postgres

2018-09-14 Thread Andréas Kühne
Hi, Just my 5 cents. I think you are doing the tests wrong. I don't believe that doing testing against hard coded values is at all correct - and it isn't actually that hard to change the tests to a simpler way. The values of the PK's aren't really necessary for your test to be true either - how do

Running django tests with postgres

2018-09-14 Thread Hezi Halpert
I would like to share with you an issue we encounter while moving from sqlite to postgres with heavily use of Django testing. We have Django app with ~700 tests. Most of them accessing database. We recently migrated the database from sqlite to postgres. Many of our tests were written in a way t

Re: Error running Django tutorial

2018-06-16 Thread Mayank Bhatia
hello guys, I am facing the same error while creating the views. On Sunday, February 28, 2016 at 1:20:39 AM UTC+5:30, Mike Kipling wrote: > > I am working through the Django tutorial *Writing your first Django app, > part 1.* > I am using Windows 10, python 3.5.1 and Django 1.9.2 . > > In the

Re: Some problems with running django

2018-06-07 Thread 曹逍遙
Hello Julio Biason I just changed my host name That's right, it's really a question of the host name. Now normal startup~~ Thank you very much Thank you very much 👍 [image: Mailtrack] Sender not

Re: Some problems with running django

2018-06-07 Thread Julio Biason
Hi, I took a longer look at the error and it seems the error raised when the server was starting up. The code tries to figure out your machine name -- a thing that's stored, on Linux systems, on /etc/hostname and on OS X on Settings -> Sharing -- and *that* name has special characters (I'd guess i

Re: Some problems with running django

2018-06-06 Thread 曹逍遙
Hello Julio Biason He is the initial version I did it according to the tutorial [image: Mailtrack] Sender notified by Mailtrack

Re: Some problems with running django

2018-06-06 Thread 曹逍遙
Julio Biason 您好 Thank you I am a beginner mytestsite/settings.py I don't know where to change I did not change him too difficult I do not know what to do [image: Mailtrack] Sender notified by Ma

Re: Some problems with running django

2018-06-06 Thread Julio Biason
Hi, UnicodeDecodeErrors are quite common in Python 2, when you add an UTF8 character and the system is not set up for it (usually, you need to start your code with `# encoding: utf-8`). But the fact that this seems to affect socket is weird as heck. I'd check anything in mytestsite/settings.py to

Some problems with running django

2018-06-06 Thread 曹逍遙
Hello I run => python manage.py runserver get result --- C:\mydjango\mytestsite>python manage.py runserver Performing system checks... System check identified no issues (0 silenced). You have 14 unapplied migration(s).

Re: Error running Django tutorial

2018-05-04 Thread Elorm Koku
You don't have anything like music/index in your urls.py file yet you are putting it in your request. On Fri, 4 May 2018, 21:48 Kamal Kumar Bharadwaj, < bharadwaj.kamal3...@gmail.com> wrote: > Hi Guys, > > I am facing trouble while running the tutorial for Django. I have attached > the error

Re: Having ERROR running Django project !!!

2018-03-29 Thread Jamaldin Pro
Thank you! On Thursday, March 29, 2018 at 8:07:07 PM UTC+6, Jani Tiainen wrote: > > Yes. I managed to "fix" your code., > > https://github.com/XJoma/mk-center1/blob/master/home/views.py#L47 > > Firstm never, ever pass locals() anywhere it's best way to introduce a lot > of bugs. Also you have qui

Re: Having ERROR running Django project !!!

2018-03-29 Thread Jani Tiainen
Yes. I managed to "fix" your code., https://github.com/XJoma/mk-center1/blob/master/home/views.py#L47 Firstm never, ever pass locals() anywhere it's best way to introduce a lot of bugs. Also you have quite a good record of from foo import * which is as bad as well. But your problem is that fourt

Re: Having ERROR running Django project !!!

2018-03-29 Thread Jamaldin Pro
Can you help? -- 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@google

Re: Having ERROR running Django project !!!

2018-03-28 Thread Jamaldin Pro
https://github.com/XJoma/mk-center1 django version 1.11.5 now you have my project. So fix my problem plz !!! It is my first time uploading so I don't know how to not show my password -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: Having ERROR running Django project !!!

2018-03-28 Thread Jani Tiainen
Hi. Preferably whole project for example put it in github. If you upload your project remember to remove sensitive data like your database passwords. 28.3.2018 5.35 ip. "Jamaldin Pro" kirjoitti: It is unknown and When I try to open it, it shows programs to open with I'm > choosing chrome and m

Re: Having ERROR running Django project !!!

2018-03-28 Thread Jamaldin Pro
> > It is unknown and When I try to open it, it shows programs to open with > I'm choosing chrome and my site opens without css/static/js I think that is > html file > DEBUG = True Can you tell me what files you need because I have a lot of files.setting.py? / wsgi.py? / urls.py? / template

Re: Having ERROR running Django project !!!

2018-03-28 Thread Jani Tiainen
Hi. Unfortunately you really don't provide anything helpful, and yelling here doesn't get you very far. Have tried to check out what that "unknown file" contains? Also have you used your browser debugger tools to verify that you don't get errors that for some reason is shadowed by your browser?

Re: Having ERROR running Django project !!!

2018-03-28 Thread Jamaldin Pro
I see no logs error and When I run it from chrome this error happens but when I try to use it from Internet e.version~9 it works normally, I can deal with it but also when I deploy to pythonanywhere there is error too. Yes I run it "python manage.py runserver" -- You received this message beca

Re: Having ERROR running Django project !!!

2018-03-26 Thread Julio Biason
Hi Jamaldin, Kinda hard to help you here, because there is a lot of information lacking. Like, do you see any errors on your logs? Are you running in dev environment (like in `python manage.py runserver`) or are you running with a webserver (nginx) in front of it? Are you using wsgi/gunicorn/any-o

Having ERROR running Django project !!!

2018-03-26 Thread Jamaldin Pro
Hello I was creating a Djnago project and when I finish it, it was working perfectly but when I start adding ("name"/"text"/"information") to models from admin page, It stops working I mean after adding I can't open my home page. *If I will try to open it, it auto downloads unknown file*. *I NE

Re: Close database connection for long running django-admin command

2017-11-01 Thread 18626427054
Did you solve this problem? On Thursday, August 25, 2016 at 1:16:36 AM UTC+8, Charanpal Dhanjal wrote: > > Hi all, > > I am using GeoDjango and I have a django-admin command that does some > route calculations for approximately 24 hours and then saves the results to > a MySQL database. Unfortuna

Re: Error running Django tutorial

2017-03-16 Thread Thomas Pittman
I'm not sure why, but it stopped the error and send to import it. I'm using 3.6? On Mar 16, 2017 11:45 AM, "Vijay Khemlani" wrote: > Why is there a backslash in > > from django.conf.urls import polls\ > > ? > > On 3/16/17, Camilo Torres wrote: > > Hi. > > > > You may have a strange, non-visible

Re: Error running Django tutorial

2017-03-16 Thread Vijay Khemlani
Why is there a backslash in from django.conf.urls import polls\ ? On 3/16/17, Camilo Torres wrote: > Hi. > > You may have a strange, non-visible character in your file just before the > line giving error. > > -- > You received this message because you are subscribed to the Google Groups > "Djan

Re: Error running Django tutorial

2017-03-16 Thread Camilo Torres
Hi. You may have a strange, non-visible character in your file just before the line giving error. -- 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+

Re: Error running Django tutorial

2017-03-15 Thread Thomas Pittman
from django.conf.urls import url from django.conf.urls import include from django.conf.urls import polls\ from django.contrib import admin urlpatterns = [ url(r'^polls/', include('polls.urls')), url(r'^admin/', include('admin.site.urls')), ] Here is a copy of the the mysite.py file. I'm n

Re: Error running Django tutorial

2017-03-15 Thread Thomas Pittman
Here is the error I keep getting. I've started this tutorial on python 3.6. I ran into the problems people had before. Somehow I've fixed them before I got here. I can't seem to reconcile this part. Any suggestions? On Saturday, February 27, 2016 at 2:50:39 PM UTC-5, Mike Kipling wrote: > >

Re: Error running Django tutorial

2017-03-08 Thread Daniel Bess
Hello! Daniel > On Mar 8, 2017, at 12:51 AM, Melvyn Sopacua wrote: > > Hi, > > On Tuesday 07 March 2017 01:24:02 Vanja Falck wrote: > > > > urlpatterns = [ > > url(r'ˆpolls/', include('polls.urls')), > > url(r'^admin/', admin.site.urls), > > ] > > Easy to see this way. You didn

Re: Error running Django tutorial

2017-03-08 Thread Melvyn Sopacua
Hi, On Tuesday 07 March 2017 01:24:02 Vanja Falck wrote: > urlpatterns = [ > url(r'ˆpolls/', include('polls.urls')), > url(r'^admin/', admin.site.urls), > ] Easy to see this way. You didn't type a caret but some unicode sign that looks like a caret. -- Melvyn Sopacua -- You receive

Re: Error running Django tutorial

2017-03-07 Thread Vanja Falck
Hi, I am also facing the same problems with the djangoproject tutorial - I have changed the settings.py file to add the polls app, but it did not solve the issue: When runserver: I get the admin page, but not the polls page. Get a similar 404 error page as Kipling, but with the ˆpolls/ url in th

Re: Running django on demand via my PyQt4 Standalone app

2016-10-27 Thread Leslie Jeffries
I have a Django project that is used to view complex data for use by Systems Engineers who are analyzing requirements traceability. Django works great for the viewing of data in lots of differing views. The templating system is awesome for that. However the data that is being viewed is coming f

Re: Running django on demand via my PyQt4 Standalone app

2016-10-26 Thread Dam ian
yeah you are right with the WoW effect :) and i know this framework but its to complex for me :P i prefere to use PyQt4, for example you have something like QT Designer where you can graphically deploy and customize the whole UI and then convert to pure python, what make me my work easier. If ki

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Mario R. Osorio
I used to do home automation, so I know you need an interface with very high "WOW!" factor AND PORTABILITY. That is why I proposed you check kivy ( http://kivy.org). kivy is the kick-ass interface I'd use, bar none. this of course my opinion and recomendation, but you know YAHOO. Dtb/Gby ==

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Dam ian
Hi again, and thanks for the answer and Tips @Mario R. Osorio >I cannot understand is why would you need django for admin, but use some other standalone (desktop?) application for everything else. You should try and stay either on the django or on the standalone application. i think i must

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Mario R. Osorio
I cannot understand is why would you need django for admin, but use some other standalone (desktop?) application for everything else. You should try and stay either on the django or on the standalone application. If after further analysis you still think you need both, then I'd use django, alo

Re: Running django on demand via my PyQt4 Standalone app

2016-10-25 Thread Vinicius Assef
Absolutely! :-D Thank you. On 24 October 2016 at 21:01, Avraham Serour wrote: > does this help? > > https://docs.djangoproject.com/en/1.10/topics/settings/#calling-django-setup-is-required-for-standalone-django-usage > > > On Tue, Oct 25, 2016 at 12:13 AM, Vinicius Assef > wrote: >> >> On 24 Oc

Re: Running django on demand via my PyQt4 Standalone app

2016-10-24 Thread Avraham Serour
does this help? https://docs.djangoproject.com/en/1.10/topics/settings/#calling-django-setup-is-required-for-standalone-django-usage On Tue, Oct 25, 2016 at 12:13 AM, Vinicius Assef wrote: > On 24 October 2016 at 16:30, Avraham Serour wrote: > > > > Django is a webframework, but it is not an

Re: Running django on demand via my PyQt4 Standalone app

2016-10-24 Thread Gergely Polonkai
Hello, I think installing Django purely for its ORM is a huge overkill. Why not, for example, SQLAlchemy? Or Qt's own DB layer (I'm making an educated guess here; if GTK has one, maybe Qt has its own, too.) If you actually want to use the web framework functionality, though, that's another story,

Re: Running django on demand via my PyQt4 Standalone app

2016-10-24 Thread Vinicius Assef
On 24 October 2016 at 16:30, Avraham Serour wrote: > > Django is a webframework, but it is not an all or nothing thing, you don't > need to use everything, you may just use the ORM, define your models, import > them from your application. This is an interesting scenario, Avraham. I can't imagine

Re: Running django on demand via my PyQt4 Standalone app

2016-10-24 Thread Avraham Serour
> Q1: Is it good idea to start a new QThread who runs the script os.system("web/manage.py runserver")? No, don't do that. > Q3: If no - what is the best method to start a django server on demand via my PyQt4 App and to stop it? If the idea is to use django from within a desktop app, you don't need

Running django on demand via my PyQt4 Standalone app

2016-10-24 Thread Dam ian
Hi, I work on some Smart Home UI / Controlling system using PyQt4, now I'm in the point where i need a Web Server to share a "Admin Page" to let the user change some Smart Home settings (via web page of course :p ). I searched the internet for a answer / idea and I think that the django server

Re: Running Django Project Locally

2016-08-24 Thread Michael Macdonald
Good points. I tend to merge the roles of developer and QA in my mind when thinking of Django, since it is not my day-job and I'm working alone. That said, you are correct, when doing something more than quick-hit problem resolution, I'm guessing I'd wind up going back to runserver. I do stil

Re: Running Django Project Locally

2016-08-24 Thread Asad Jibran Ahmed
One thing I'd add to this is that I could never work without runserver because I tend to use ipdb a *lot* while debugging any problems. For me the best way to debug is to put import ipdb; ipdb.set_trace() in my code and just start debugging from the command line. Having uwsgi or any other kind of s

Re: Running Django Project Locally

2016-08-24 Thread Andreas Kuhne
2016-08-24 17:54 GMT+02:00 Michael Macdonald : > Interestingly enough, just this morning, after a couple times being bitten > with differences in behavior between use of runserver in development vs. > wsgi in production, I've decided to do all development on my local machine > under lighttpd. In

Re: Running Django Project Locally

2016-08-24 Thread Michael Macdonald
Interestingly enough, just this morning, after a couple times being bitten with differences in behavior between use of runserver in development vs. wsgi in production, I've decided to do all development on my local machine under lighttpd. In the process of (mis?)configuring it now. I'm prett

Close database connection for long running django-admin command

2016-08-24 Thread Charanpal Dhanjal
Hi all, I am using GeoDjango and I have a django-admin command that does some route calculations for approximately 24 hours and then saves the results to a MySQL database. Unfortunately the database connection times out after 8 hours resulting in: django.db.utils.OperationalError: (2006, 'MySQL

Re: Running Django Project Locally

2016-08-24 Thread Hendro Wibowo
Maybe you can fix it by creating a new Django project in another directory and then copy manage.py (and/or other missing default files) to your current project directory. On Wednesday, August 24, 2016 at 3:42:57 PM UTC+7, Lekan Wahab wrote: > > Thanks for getting back to me. > ​So, i just figure

Re: Running Django Project Locally

2016-08-24 Thread Lekan Wahab
So, I have been handed the other part of the project which now contains everything except the manage.py file(which i have created). Also, the project is quiet old and some of the dependencies are either no longer being managed or don't exist anymore.(unobase for an example). As such, i was handed

Re: Running Django Project Locally

2016-08-24 Thread Mike Dewhirst
On 24/08/2016 6:42 PM, Lekan Wahab wrote: Thanks for getting back to me. ​So, i just figured *manage.py* would also require the *settings.py* which is missing now. What do i do about that? That depends. Is the system currently working? If so there will be a bunch of settings somewhere and

Re: Running Django Project Locally

2016-08-24 Thread Lekan Wahab
Thanks for getting back to me. ​So, i just figured *manage.py* would also require the *settings.py* which is missing now. What do i do about that? Lekan​ On Wed, Aug 24, 2016 at 8:48 AM, Mike Dewhirst wrote: > On 24/08/2016 5:23 PM, Lekan Wahab wrote: > >> Good morning, >> I was recently given

Re: Running Django Project Locally

2016-08-24 Thread Mike Dewhirst
On 24/08/2016 5:23 PM, Lekan Wahab wrote: Good morning, I was recently given  a django project to manage at work. However, i noticed the project has neither a django-admin.py or a manage.py file. Is that normal? There is usually a manage.py file in the root of the project. django-admin.py is

Re: Running Django Project Locally

2016-08-24 Thread Asad Jibran Ahmed
Hi, It's definitely weird to not have a manage.py since all new Django projects should have it by default. But the manage.py file is pretty simple, and you can just paste this inside a new manage.py: #!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefaul

Running Django Project Locally

2016-08-24 Thread Lekan Wahab
Good morning, I was recently given a django project to manage at work. However, i noticed the project has neither a django-admin.py or a manage.py file. Is that normal? If it is, how do i run the project on my local machine for testing purposes? The file structure is something like this: Project

  1   2   3   4   >