Re: print option with django application

2017-12-19 Thread johnf
I wonder what solutions there are for print from a django app? Is it 
possible to use reportlab for example.  Or is there some other solution 
that is normally used from django apps?


Johnf


On 12/19/2017 05:47 AM, Larry Martell wrote:

On Tue, Dec 19, 2017 at 1:50 AM, Ketul Suthar  wrote:

I want to print data from database when user click on print button.

how can I achieve it ?

Is there any in-built module in djnago for printing data ?

You cannot force the user to print. What I do in these situations is
generate a pfd (with wkhtmltopdf) and then the user can print that.



--
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/d7bf8abe-f500-f97d-d9bd-836d12620ff7%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: Convert Excel code to Python

2018-01-10 Thread johnf
I did not realize that the old app was so large.  I think I would take a 
different approach to the problem and not the one you are suggesting - 
to convert the VBA to python.  Django and excel are very different 
animals.  In my opinion you are trying to mix apples and oranges and 
that never works well.  I would review each form and determine the data 
requirements and come up with a database schema.  You might then 
consider using a REST interface for the data - including functions 
requirements.  Then review the UI and determine if the there is a better 
way to present the data (or gather the data).  I would not make any 
attempt to recreate the UI but follow the requirements and create a UI 
that meets the requirements.  IMO this is a completely new project.    
All the excel does for you is provide a guide - nothing like a solution. 
Attempting to use some sort of converted VBA code will only cause you to 
have a bad Django project.


Johnf


On 01/09/2018 09:53 PM, BIJAL MANIAR wrote:


Hi,
Thanks all for reply.
Since it is an old application there is no documentation for it. I 
will have to do Reverse Engineering by looking at vbscript code and 
gathering requirements.
Total there are 40 screens. A single form has 20-30 input parameters 
to select from and generate output depending on that. There are 
validation for combination of few input parameters as well. I can code 
in python but want some suggestion on approach to be followed.


I know fully automated tools are not available. Has anyone used vb2py 
or any such libraries for such requirement and how accurate it was?


Thanks,
Bijal

On Tuesday, January 9, 2018 at 6:45:55 PM UTC+5:30, BIJAL MANIAR wrote:


Hi,

There is an old application in Excel where macros are coded in
VBScript and there is both frontend (forms) and backend in Excel.
Need to replicate it as a web application (Python, Django, React).
From scratch, have to build it in python.
I have checked vb2py library is there for code conversion but it
has limitations. Can anyone please guide me if any tools are
available to convert code from vbscript to python?

Thanks,
Bijal

--
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto: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/69a6524b-ffbc-4c32-bba6-7c6e40746832%40googlegroups.com 
<https://groups.google.com/d/msgid/django-users/69a6524b-ffbc-4c32-bba6-7c6e40746832%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
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/c3af07f7-81da-de76-f948-1aa723049d22%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


emulate desktop multi-windows

2018-01-18 Thread johnf

Hi,

I have a desktop CRUD application that allows the same form to be opened 
many times.  Example: I can open a customer's (A) record in one 
window/form and then from the first window/form (customer A's) open a 
second or third window to process customer B or customer C etc... all 
without closing any of the windows/forms.  IOW I can have many windows 
open at the same time all using the same form with different customer 
records.


How can I do this with Django?  I would like to replace the desktop app 
with a web app using Django.



Johnf

--
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/497247eb-313a-c0e6-0d1b-f10ece876f10%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-18 Thread johnf

Doesn't opening a new browser window imply using lots of memory?

Johnf


On 01/18/2018 05:11 AM, Andréas Kühne wrote:

Hi,

You would have to either write a single page application that handles 
the window creations (to make it more like an application). But the 
standard way would just to open a new browser window - You can use the 
target property on an a tag (for the link to the customer) to open a 
new page each time (target="_blank").


Regards,

Andréas

2018-01-18 14:07 GMT+01:00 johnf <mailto:jo...@jfcomputer.com>>:


Hi,

I have a desktop CRUD application that allows the same form to be
opened many times.  Example: I can open a customer's (A) record in
one window/form and then from the first window/form (customer A's)
open a second or third window to process customer B or customer C
etc... all without closing any of the windows/forms.  IOW I can
have many windows open at the same time all using the same form
with different customer records.

How can I do this with Django?  I would like to replace the
desktop app with a web app using Django.


Johnf

-- 
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
<mailto:django-users%2bunsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users
<https://groups.google.com/group/django-users>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/497247eb-313a-c0e6-0d1b-f10ece876f10%40jfcomputer.com

<https://groups.google.com/d/msgid/django-users/497247eb-313a-c0e6-0d1b-f10ece876f10%40jfcomputer.com>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


--
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto: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/CAK4qSCccE9WsdQ4p3WiVQtix8SFGk6a4r%3D7XnbLgVAQmmWjABw%40mail.gmail.com 
<https://groups.google.com/d/msgid/django-users/CAK4qSCccE9WsdQ4p3WiVQtix8SFGk6a4r%3D7XnbLgVAQmmWjABw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
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/10457f9b-0045-b364-9e73-b28cc92578e3%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-18 Thread johnf
But doesn't Django provide the template system?  Do you replace the 
template system with DoyuoToolkit?


Johnf


On 01/18/2018 05:43 AM, Jani Tiainen wrote:

Hi,

This actually doesn't have anything to do with Django, but frontend. 
Basically you need to pick some Javascript UI framework that supports 
features you're after.


Personally I've only used Dojotoolkit (free, nicely licensed) and 
ExtJS (commercial).


On 18.1.2018 15.07, johnf wrote:

Hi,

I have a desktop CRUD application that allows the same form to be 
opened many times.  Example: I can open a customer's (A) record in 
one window/form and then from the first window/form (customer A's) 
open a second or third window to process customer B or customer C 
etc... all without closing any of the windows/forms.  IOW I can have 
many windows open at the same time all using the same form with 
different customer records.


How can I do this with Django?  I would like to replace the desktop 
app with a web app using Django.



Johnf





--
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/498b306e-72ae-ccc7-9e40-ec47c18082f8%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-18 Thread johnf
I have the backend covered with REST.   When I try to google hybrid 
google comes up with hybrid mobile apps.  I did find fragment.js but I 
don't see any type of real information on how to use it.   I did find 
some info on javascript and multi-windows but here again it looks like 
it wants to replace the template system that Django uses.


It just seems to me that this issue must have come up in the past.  
There must be a solution provided by Django without replacing parts of 
the Django framework????


Johnf


On 01/18/2018 06:22 AM, Jani Tiainen wrote:

Hi.

Yes and no. Usually you do SPA, a single page application, that just 
talks to backend, Django in this case, using some means. REST api and 
JSON data is quite common.


So basically you need only one template that fires up rest of your 
interface.


There are though alternative approaches like using hybrid of JS 
library to request HTML fragments and render them using JS. Fragments 
then are generated using templates.


18.1.2018 15.46 "johnf" <mailto:jo...@jfcomputer.com>> kirjoitti:


But doesn't Django provide the template system?  Do you replace
the template system with DoyuoToolkit?

Johnf



On 01/18/2018 05:43 AM, Jani Tiainen wrote:

Hi,

This actually doesn't have anything to do with Django, but
frontend. Basically you need to pick some Javascript UI
framework that supports features you're after.

Personally I've only used Dojotoolkit (free, nicely licensed)
and ExtJS (commercial).

On 18.1.2018 15.07, johnf wrote:

Hi,

I have a desktop CRUD application that allows the same
form to be opened many times.  Example: I can open a
customer's (A) record in one window/form and then from the
first window/form (customer A's) open a second or third
window to process customer B or customer C etc... all
without closing any of the windows/forms. IOW I can have
many windows open at the same time all using the same form
with different customer records.

How can I do this with Django?  I would like to replace
the desktop app with a web app using Django.


Johnf



-- 
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
<mailto:django-users%2bunsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users
<https://groups.google.com/group/django-users>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/498b306e-72ae-ccc7-9e40-ec47c18082f8%40jfcomputer.com

<https://groups.google.com/d/msgid/django-users/498b306e-72ae-ccc7-9e40-ec47c18082f8%40jfcomputer.com>.


For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


--
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto: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/CAHn91ofZjaRdNntVNGqf3EQwDDebE3umWqM6qqwDf-Z4RSsa0w%40mail.gmail.com 
<https://groups.google.com/d/msgid/django-users/CAHn91ofZjaRdNntVNGqf3EQwDDebE3umWqM6qqwDf-Z4RSsa0w%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
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/7449fab6-b78a-bfd6-3003-dcaf0fb34827%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: emulate desktop multi-windows

2018-01-18 Thread johnf
The reason I wanted Django was to insure that the data is valid (using 
python).   When they enter the data and the submit button is clicked I 
want to be able to modify the response using python.


So what I'm hearing from the list - is that in general - people are not 
using the Django template system.  Is that right?


I have been doing a little research and have discovered a couple of 
javascript tools that allow multi - windows/forms/dialogs/frames.   But 
then - like you said - I'm replacing the Django template system.


It seems that web UI is still not up to the desktop abilities. That's 
not good.  BTW I was looking at Electron and discovered that it can 
easily match the desktop multi-window and it's using web tech.  So I'm 
guessing it is possible but not often requested.


Johnf


On 01/18/2018 09:48 AM, Andréas Kühne wrote:

Hi,

I think you are not thinking this completely through correctly.

Django is a framework used to generate HTML pages. HTML pages render 
one page at a time in one webbrowser window. That is the way HTML works.


You can via javascript do some funky things, like Single page 
applications - but then most of the templating engine in django isn't 
used. You could create templates on the backend and send them via ajax 
to the frontend but that is mainly used for rendering partial pages 
and not for complete pages. Also, it would be really cumbersome to 
write the code.


If you already have a REST backend, why do you need django at all? 
Django isn't the best framework for getting information from a REST 
API and then publishing the information. You really should be looking 
into running a single page application in that case...


Django can be used to create a REST backend for the single page 
application however.


Regards,

Andréas

2018-01-18 17:25 GMT+01:00 johnf <mailto:jo...@jfcomputer.com>>:


I have the backend covered with REST.   When I try to google
hybrid google comes up with hybrid mobile apps.  I did find
fragment.js but I don't see any type of real information on how to
use it.   I did find some info on javascript and multi-windows but
here again it looks like it wants to replace the template system
that Django uses.

It just seems to me that this issue must have come up in the
past.  There must be a solution provided by Django without
replacing parts of the Django framework

Johnf


On 01/18/2018 06:22 AM, Jani Tiainen wrote:

Hi.

Yes and no. Usually you do SPA, a single page application, that
just talks to backend, Django in this case, using some means.
REST api and JSON data is quite common.

So basically you need only one template that fires up rest of
your interface.

There are though alternative approaches like using hybrid of JS
library to request HTML fragments and render them using JS.
Fragments then are generated using templates.

18.1.2018 15.46 "johnf" mailto:jo...@jfcomputer.com>> kirjoitti:

But doesn't Django provide the template system?  Do you
replace the template system with DoyuoToolkit?

Johnf



On 01/18/2018 05:43 AM, Jani Tiainen wrote:

Hi,

This actually doesn't have anything to do with Django,
but frontend. Basically you need to pick some Javascript
UI framework that supports features you're after.

Personally I've only used Dojotoolkit (free, nicely
licensed) and ExtJS (commercial).

On 18.1.2018 15.07, johnf wrote:

Hi,

I have a desktop CRUD application that allows the
same form to be opened many times.  Example: I can
open a customer's (A) record in one window/form and
then from the first window/form (customer A's) open a
second or third window to process customer B or
customer C etc... all without closing any of the
windows/forms. IOW I can have many windows open at
the same time all using the same form with different
customer records.

How can I do this with Django?  I would like to
replace the desktop app with a web app using Django.


Johnf



-- 
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
<mailto:django-users%2bunsubscr...@googlegroups.com>.
To post to this group, send email to
django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at
https://groups.google.com/group/django-users
<https://grou

Re: emulate desktop multi-windows

2018-01-18 Thread johnf
I believe I understand what you are saying.  But I was hoping that 
Django offered the javascript framework that allowed multi-windows.  To 
get what I want I will have to use a javascript framework - I 
understand.  But that said, I have been researching several of the 
javascript frameworks and they do in fact allow new tabs (using 
chrome).  Example: google mail will allow multi-pages (actually tabs) of 
contacts just with multi clicks on the GMAIL dropdown.  But that wasn't 
what I was hoping for - I want individual windows/forms that I can 
resize, move, Max, Min, etc... So far the only thing I have found was 
the electron  app I spoke about earlier.  The electron framework allowed 
windows that can be resized, moved about the screen, and closed.  I am 
still researching but so far only Electron.  BTW the Electron is really 
a desktop app using web tools (css, html, javascript, and nodejs).  I'm 
guessing (mostly from your emails) that there are javascript frameworks 
that will allow what I looking for - I  just haven't found it YET!


Johnf


On 01/18/2018 11:12 AM, Andréas Kühne wrote:

No John,

I don't think you understand what we are saying :-)

Like I said earlier - Django is a HTML framework - like ALL HTML 
framework, it renders the pages you are seeing on the backend and 
presents the information to the user. That is per design in the HTML 
world. You click on a link and then the server renders a new page and 
so on. There is no way to add "windows" in any other way than to open 
a new browser. That is the way HTML works.


If you want to add a fancy single page application (which is what you 
are suggesting) then the only way to do so is to use a Javascript 
framework of some kind. What that does is to add the ability to do 
windows and the like - just in the way you want to do it - and that is 
still within the "web UI wold". If you look at things like the google 
cloud engine interface or gmail or the amazon AWS interface, that is 
all done on the web, with a web UI. However all of those pages REQUIRE 
javascript to function.


So it is often requested and I am currently working on a single page 
application that uses django for the backend, but HTML cannot render 
the single page application - that is done in a javascript framework. 
So web UI is completely on par with a desktop application but it 
requires more components that you are willing to use :-)


Regards,

Andréas

2018-01-18 19:26 GMT+01:00 johnf <mailto:jo...@jfcomputer.com>>:


The reason I wanted Django was to insure that the data is valid
(using python).   When they enter the data and the submit button
is clicked I want to be able to modify the response using python.

So what I'm hearing from the list - is that in general - people
are not using the Django template system.  Is that right?

I have been doing a little research and have discovered a couple
of javascript tools that allow multi -
windows/forms/dialogs/frames.   But then - like you said - I'm
replacing the Django template system.

It seems that web UI is still not up to the desktop abilities. 
That's not good.  BTW I was looking at Electron and discovered
that it can easily match the desktop multi-window and it's using
web tech.  So I'm guessing it is possible but not often requested.

Johnf


On 01/18/2018 09:48 AM, Andréas Kühne wrote:

Hi,

I think you are not thinking this completely through correctly.

Django is a framework used to generate HTML pages. HTML pages
render one page at a time in one webbrowser window. That is the
way HTML works.

You can via javascript do some funky things, like Single page
applications - but then most of the templating engine in django
isn't used. You could create templates on the backend and send
them via ajax to the frontend but that is mainly used for
rendering partial pages and not for complete pages. Also, it
would be really cumbersome to write the code.

If you already have a REST backend, why do you need django at
all? Django isn't the best framework for getting information from
a REST API and then publishing the information. You really should
be looking into running a single page application in that case...

Django can be used to create a REST backend for the single page
application however.

Regards,

Andréas

2018-01-18 17:25 GMT+01:00 johnf mailto:jo...@jfcomputer.com>>:

I have the backend covered with REST.   When I try to google
hybrid google comes up with hybrid mobile apps.  I did find
fragment.js but I don't see any type of real information on
how to use it.   I did find some info on javascript and
multi-windows but here again it looks like it wants to
replace the template system that Django uses.

It just seems to me that

Re: emulate desktop multi-windows

2018-01-19 Thread johnf
Thank you very much - I was about to check out EXTjs along with 
DojotoolKit today.


It looks like I might be able to get this done using web tech.

Johnf


On 01/19/2018 02:42 AM, Jani Tiainen wrote:


Hi,

Also Dojotoolkit has windows (or actually Dijit does which is part of 
Dojotoolkit):


https://dojotoolkit.org/reference-guide/1.10/dojox/layout/FloatingPane.html

To my knowledge also Kendo UI does have such a window you're looking for.

On 19.1.2018 0.10, johnf wrote:


I believe I understand what you are saying.  But I was hoping that 
Django offered the javascript framework that allowed multi-windows.  
To get what I want I will have to use a javascript framework - I 
understand.  But that said, I have been researching several of the 
javascript frameworks and they do in fact allow new tabs (using 
chrome).  Example: google mail will allow multi-pages (actually tabs) 
of contacts just with multi clicks on the GMAIL dropdown.  But that 
wasn't what I was hoping for - I want individual windows/forms that I 
can resize, move, Max, Min, etc... So far the only thing I have found 
was the electron  app I spoke about earlier.  The electron framework 
allowed windows that can be resized, moved about the screen, and 
closed.  I am still researching but so far only Electron.  BTW the 
Electron is really a desktop app using web tools (css, html, 
javascript, and nodejs).  I'm guessing (mostly from your emails) that 
there are javascript frameworks that will allow what I looking for - 
I  just haven't found it YET!


Johnf


On 01/18/2018 11:12 AM, Andréas Kühne wrote:

No John,

I don't think you understand what we are saying :-)

Like I said earlier - Django is a HTML framework - like ALL HTML 
framework, it renders the pages you are seeing on the backend and 
presents the information to the user. That is per design in the HTML 
world. You click on a link and then the server renders a new page 
and so on. There is no way to add "windows" in any other way than to 
open a new browser. That is the way HTML works.


If you want to add a fancy single page application (which  is what 
you are suggesting) then the only way to do so is to use a 
Javascript framework of some kind. What that does is to add the 
ability to do windows and the like - just in the way you want to do 
it - and that is still within the "web UI wold". If you look at 
things like the google cloud engine interface or gmail or the amazon 
AWS interface, that is all done on the web, with a web UI. However 
all of those pages REQUIRE javascript to function.


So it is often requested and I am currently working on a single page 
application that uses django for the backend, but HTML cannot render 
the single page application - that is done in a javascript 
framework. So web UI is completely on par with a desktop application 
but it requires more components that you are willing to use :-)


Regards,

Andréas

2018-01-18 19:26 GMT+01:00 johnf <mailto:jo...@jfcomputer.com>>:


The reason I wanted Django was to insure that the data is valid
(using python).   When they enter the data and the submit button
is clicked I want to be able to modify the response using python.

So what I'm hearing from the list - is that in general - people
are not using the Django template system.  Is that right?

I have been doing a little research and have discovered a couple
of javascript tools that allow multi -
windows/forms/dialogs/frames.   But then - like you said - I'm
replacing the Django template system.

It seems that web UI is still not up to the desktop abilities. 
That's not good.  BTW I was looking at Electron and discovered
that it can easily match the desktop multi-window and it's using
    web tech.  So I'm guessing it is possible but not often requested.

Johnf


On 01/18/2018 09:48 AM, Andréas Kühne wrote:

Hi,

I think you are not thinking this completely through correctly.

Django is a framework used to generate HTML pages. HTML pages
render one page at a time in one webbrowser window. That is the
way HTML works.

You can via javascript do some funky things, like Single page
applications - but then most of the templating engine in django
isn't used. You could create templates on the backend and send
them via ajax to the frontend but that is mainly used for
rendering partial pages and not for complete pages. Also, it
would be really cumbersome to write the code.

If you already have a REST backend, why do you need django at
all? Django isn't the best framework for getting information
from a REST API and then publishing the information. You really
should be looking into running a single page application in
that case...

Django can be used to create a REST backend for the single page
application however.

Regards,

Andréas

20

Re: PostrgreSQL Inside Virtualenv

2018-01-24 Thread johnf

I doubt it is possible to install Postgres into virtualenv???

At least I'm not aware that it can be done.  I'll do a little research 
and see if I can be done.  Of course it can be installed on VM.


Johnf


On 01/24/2018 02:25 AM, tango ward wrote:

Noted. Thanks

On Wed, Jan 24, 2018 at 5:56 PM, Avraham Serour <mailto:tovm...@gmail.com>> wrote:


In any case you'll need to pip install the postgres drivers for
python, I suggest doing that inside the env


On Wed, Jan 24, 2018 at 11:32 AM, tango ward
mailto:tangowar...@gmail.com>> wrote:

Got it. Thanks Anoosha

On Wed, Jan 24, 2018 at 5:29 PM, 'Anoosha Masood Keen' via
Django users mailto:django-users@googlegroups.com>> wrote:

Install it on your computer.

On Wednesday, January 24, 2018 at 8:49:17 AM UTC,
tangoward15 wrote:


Hi,


Newbie question, since I installed django and pillow
inside virtualenv, shall I also install PostgreSQL
inside Virtualenv? At the moment I am still using
SQLite in my pet project.


Regards,
Jarvis


-- 
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to
django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at
https://groups.google.com/group/django-users
<https://groups.google.com/group/django-users>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/962726a2-e3b3-4ee1-b81b-c1227656b7da%40googlegroups.com

<https://groups.google.com/d/msgid/django-users/962726a2-e3b3-4ee1-b81b-c1227656b7da%40googlegroups.com?utm_medium=email&utm_source=footer>.


For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


-- 
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to
django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at
https://groups.google.com/group/django-users
<https://groups.google.com/group/django-users>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/CAA6wQLKYD2z4dvuxESSp67CSiDDOttMJuGxizhFHyVRhA%2BHq6w%40mail.gmail.com

<https://groups.google.com/d/msgid/django-users/CAA6wQLKYD2z4dvuxESSp67CSiDDOttMJuGxizhFHyVRhA%2BHq6w%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


-- 
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users
<https://groups.google.com/group/django-users>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/CAFWa6tLjsVTidO1X4v8wB%2BBukYTjKMiif4_CLFjqsPW_3WdbDA%40mail.gmail.com

<https://groups.google.com/d/msgid/django-users/CAFWa6tLjsVTidO1X4v8wB%2BBukYTjKMiif4_CLFjqsPW_3WdbDA%40mail.gmail.com?utm_medium=email&utm_source=footer>.


For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


--
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto:django-users@googlegroups.com>.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on th

wrong URL for view function

2019-07-09 Thread johnf

Hi,

In my app folder I have a view.py which contains a function "def 
get_courts(pkid)"


In my app folder url.py I have :

 path('/get_courts/', views.get_courts, name = 'reg4_getcourts')

In my app ->template->html file I have:

function countySelected(){
    var countyId = $("select[name=County]").val();
    $.ajax({
    url: "/get_courts/" + countyId,
    dataType: "json", ...


I get the following error:

"GET /get_courts/47 HTTP/1.1" 404 3221"


So the question is what is the correct url I should be using in the html 
file. Here is my tree:


 pesweb
│   ├── __init__.py
│   ├── pesweb3.wpr
│   ├── pesweb3.wpu
│   ├── __pycache__
│   │   ├── __init__.cpython-36.pyc
│   │   ├── settings.cpython-36.pyc
│   │   ├── urls.cpython-36.pyc
│   │   └── wsgi.cpython-36.pyc
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
└── register
    ├── admin.py
    ├── apps.py
    ├── AuthNet.py
    ├── ccProcess.py
    ├── creditcard.py
    ├── forms.py
    ├── __init__.py
    ├── migrations
    │   ├── __init__.py
    │   └── __pycache__
    │   └── __init__.cpython-36.pyc
    ├── models.py
    ├── __pycache__
    │   ├── admin.cpython-36.pyc
    │   ├── apps.cpython-36.pyc
    │   ├── ccProcess.cpython-36.pyc
    │   ├── creditcard.cpython-36.pyc
    │   ├── forms.cpython-36.pyc
    │   ├── __init__.cpython-36.pyc
    │   ├── models.cpython-36.pyc
    │   ├── urls.cpython-36.pyc
    │   └── views.cpython-36.pyc
    ├── static
    │   ├── css
    │   │   ├── bootstrap-datetimepicker.min.css
    │   │   ├── bootstrap.min.css
    │   │   ├── bootstrap-theme.min.css
    │   │   ├── calendar.png
    │   │   ├── changenavbar.css
    │   │   ├── jquery-ui.css
    │   │   ├── main.css
    │   │   ├── sprites.css
    │   │   ├── theme.css
    │   │   └── themes.png
    │   ├── fonts
    │   │   ├── glyphicons-halflings-regular.eot
    │   │   ├── glyphicons-halflings-regular.svg
    │   │   ├── glyphicons-halflings-regular.ttf
    │   │   └── glyphicons-halflings-regular.woff
    │   ├── img
    │   │   └── favicon.ico
    │   └── js
    │   ├── additional-methods.js
    │   ├── bootstrap-datetimepicker.min.js
    │   ├── bootstrap.min.js
    │   ├── docs.min.js
    │   ├── jquery.maskedinput.min.js
    │   ├── jquery.min.js
    │   ├── jquery-ui.min.js
    │   └── jquery-validate.min.js
    ├── templates
    │   └── register
    │   ├── about_start.html
    │   ├── base.html
    │   ├── finished.html
    │   ├── home.html
    │   ├── navbar.html
    │   ├── reg1.html
    │   ├── reg2.html
    │   ├── reg3.html
    │   ├── reg4.html
    │   └── rejected.html
    ├── tests.py
    ├── urls.py
    └── views.py


Thanks in advance,

Johnf

--
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/6a94b889-2813-a8de-48b5-e513c178ac38%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: wrong URL for view function

2019-07-10 Thread johnf
If I add the pkid to the path it will work.  I.e. 
path('/get_courts/47/', views.get_courts, name="reg4_getcourts')


At least my function is called.  But what I'm attempting to do is pass 
the pkid (in this case 47) to the function in the app->view.py from the 
javascript function.


This use to work in older versions of django.

Now that I have said that - I did discover a way to pass the data.  By 
using the "data: {'countyId': countyId}," in the ajax call.


 $.ajax({
    url: "/get_courts/",
    data:  {'countyId': countyId},
    dataType: "json",


In some ways this does seem to be better.  Still I know for a fact the 
other way use to work.


Johnf


On 7/10/19 12:07 AM, Javier Rivera wrote:
You need to capture parameters in your path definition if they are 
part of the url.


Something like path('/get_courts//', views.get_courts, 
name="reg4_getcourts')


Best regards,

Javier.

O 10/07/19 ás 08:57, johnf escribiu:


Hi,

In my app folder I have a view.py which contains a function "def 
get_courts(pkid)"


In my app folder url.py I have :

 path('/get_courts/', views.get_courts, name = 'reg4_getcourts')

In my app ->template->html file I have:

function countySelected(){
    var countyId = $("select[name=County]").val();
    $.ajax({
    url: "/get_courts/" + countyId,
    dataType: "json", ...


I get the following error:

"GET /get_courts/47 HTTP/1.1" 404 3221"


So the question is what is the correct url I should be using in the 
html file.  Here is my tree:


 pesweb
│   ├── __init__.py
│   ├── pesweb3.wpr
│   ├── pesweb3.wpu
│   ├── __pycache__
│   │   ├── __init__.cpython-36.pyc
│   │   ├── settings.cpython-36.pyc
│   │   ├── urls.cpython-36.pyc
│   │   └── wsgi.cpython-36.pyc
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
└── register
    ├── admin.py
    ├── apps.py
    ├── AuthNet.py
    ├── ccProcess.py
    ├── creditcard.py
    ├── forms.py
    ├── __init__.py
    ├── migrations
    │   ├── __init__.py
    │   └── __pycache__
    │   └── __init__.cpython-36.pyc
    ├── models.py
    ├── __pycache__
    │   ├── admin.cpython-36.pyc
    │   ├── apps.cpython-36.pyc
    │   ├── ccProcess.cpython-36.pyc
    │   ├── creditcard.cpython-36.pyc
    │   ├── forms.cpython-36.pyc
    │   ├── __init__.cpython-36.pyc
    │   ├── models.cpython-36.pyc
    │   ├── urls.cpython-36.pyc
    │   └── views.cpython-36.pyc
    ├── static
    │   ├── css
    │   │   ├── bootstrap-datetimepicker.min.css
    │   │   ├── bootstrap.min.css
    │   │   ├── bootstrap-theme.min.css
    │   │   ├── calendar.png
    │   │   ├── changenavbar.css
    │   │   ├── jquery-ui.css
    │   │   ├── main.css
    │   │   ├── sprites.css
    │   │   ├── theme.css
    │   │   └── themes.png
    │   ├── fonts
    │   │   ├── glyphicons-halflings-regular.eot
    │   │   ├── glyphicons-halflings-regular.svg
    │   │   ├── glyphicons-halflings-regular.ttf
    │   │   └── glyphicons-halflings-regular.woff
    │   ├── img
    │   │   └── favicon.ico
    │   └── js
    │   ├── additional-methods.js
    │   ├── bootstrap-datetimepicker.min.js
    │   ├── bootstrap.min.js
    │   ├── docs.min.js
    │   ├── jquery.maskedinput.min.js
    │   ├── jquery.min.js
    │   ├── jquery-ui.min.js
    │   └── jquery-validate.min.js
    ├── templates
    │   └── register
    │   ├── about_start.html
    │   ├── base.html
    │   ├── finished.html
    │   ├── home.html
    │   ├── navbar.html
    │   ├── reg1.html
    │   ├── reg2.html
    │   ├── reg3.html
    │   ├── reg4.html
    │   └── rejected.html
    ├── tests.py
    ├── urls.py
    └── views.py


Thanks in advance,

Johnf

--
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto: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/6a94b889-2813-a8de-48b5-e513c178ac38%40jfcomputer.com 
<https://groups.google.com/d/msgid/django-users/6a94b889-2813-a8de-48b5-e513c178ac38%40jfcomputer.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
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 
<mailto:django-

trouble with setting static for img and css

2017-05-11 Thread johnf

Hi folks,

I have researched this issue and I know all I have to do is read the 
doc's.  But I can seem to get the correct path working to allow the 
website to find the correct files in my Media,CSS and JS folders.


I'm using 1.11.x and have the following setup in OS file system.

I have set DEBUG = True

/z/pes_django1.11/pesweb/  is where my manage.py is located - it runs 
just fine.


my files are in

/z/pes_django1.11/pesweb/static/static/css/  - this of course is for CSS

/z/pes_django1.11/pesweb/static/static/js/  -this of course is for JS

/z/pes_django1.11/pesweb/static/static/img/ -this of course is for 
images like favicon.ico


In my settings.py file I have tried many combinations such as:

STATIC_URL = '/pesweb/static/static/'

STATIC_URL = '/static/static/'

STATIC_URL = '/pesweb/static/'


So would some kind soul please tell me what I need in STATIC_URL, and 
MEDIA_URL.


Thanks in advance,

Johnf



--
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/4bf10da8-e78b-147c-78dd-0d4206143ba9%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: Noobie question, can't get url request to work, 404

2017-07-05 Thread johnf
to be honest I haven't used Django in a while so take what I'm saying as 
wrong - but shouldn't the url be


url(r'hello/$', views.hello, name='hello'),

Not sure you need "^" although I doubt it hurts.

Johnf


On 07/05/2017 02:23 PM, ahickm...@tamu.edu wrote:
So I literally just started django, I know 0 about backend dev, but im 
going through the djangobook tutorial (also, please excuse me if I use 
the wrong syntax). He shows us how to get content to show up on our 
temporary domain (a simple Hello World).


The hello world setup looks like so, with the file named views.py, 
located in the same directory as urls.py


from django.httpimport HttpResponse

def hello(request): return HttpResponse("Hello world")

And the urls.py file looks like this

from django.conf.urlsimport url
from django.contribimport admin

from mysite.viewsimport hello

urlpatterns= [ url(r'^admin/', admin.site.urls),
 url(r'^hello/$', hello),
]

I feel like somethings wrong with the path, or something like that? 
I'm kinda of clueless at this point though, I've been working on it 
for a while. I don't even know how to go about de-bugging, since this 
is vastly different from coding a simple "get all the odd numbers from 
a list" problem.


Thanks

--
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto: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/7c751df1-c209-455c-bf83-f5fa2ddf3d8b%40googlegroups.com 
<https://groups.google.com/d/msgid/django-users/7c751df1-c209-455c-bf83-f5fa2ddf3d8b%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
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/1e166301-5b58-670e-b204-c003205adef9%40jfcomputer.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can you do this with the Django ORM?

2020-03-21 Thread johnf

google "django send raw sql"

Johnf

On 3/21/20 8:52 AM, 'rossm6' via Django users wrote:

Can the django ORM do something like this?

|SELECT *FROM "products_maxbid"asm JOIN "products_auction"asa on 
m.auction_id =a.uuid WHERE m.uuid in(SELECT m.uuid FROM 
"products_maxbid"asm INNER JOIN (SELECT 
auction_id,Max(value)asvalueFROM "products_maxbid"WHERE user_id 
='2'GROUP BY auction_id )n on m.auction_id =n.auction_id 
andm.value=n.valueandm.user_id ='2')ORDER BY a.square_id|

SO question 
-https://stackoverflow.com/questions/60789513/django-query-for-max-value-for-column-which-includes-foreign-key-table-also-in-r
--
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJXS7_MePOU_LYhVWLKsG0gz4XyVdDS8w4LhpFyYCQpQVUGkOw%40mail.gmail.com 
<https://groups.google.com/d/msgid/django-users/CAJXS7_MePOU_LYhVWLKsG0gz4XyVdDS8w4LhpFyYCQpQVUGkOw%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/fe748de5-71c8-0c42-dd78-5a1f1b29dfe8%40gmail.com.


Re: I am building an open source School Management System

2020-05-09 Thread johnf

Your website was very nice.  I liked the slider over.

Johnf

On 5/9/20 4:08 AM, ola neat wrote:
Mine is for secondary school,  i have it on heroku 
https://dhope-sms.herokuapp.com/my-sms/

Still have somethings to tidy sha

On Sat, May 9, 2020, 11:15 Adedotun Richard <mailto:dotun.sm...@gmail.com>> wrote:


@ola neat Can you share let us see what you have done so far?

On Sat, May 9, 2020, 11:11 AM ola neat mailto:tosinayoo...@gmail.com>> wrote:

I can contribute as I've built a sch mgt sys using django last yr

On Fri, May 8, 2020, 21:57 Kasper Laudrup
mailto:laud...@stacktrace.dk>> wrote:

An may Heiðrún provide a constant flow of mead

On 08/05/2020 22.45, Sherif Adigun wrote:
> May Allah make it easy.
> Jazaakumullahu khayran
>
> On Fri, May 8, 2020, 8:24 PM Motaz Hejaze
mailto:trapper...@gmail.com>
> <mailto:trapper...@gmail.com
<mailto:trapper...@gmail.com>>> wrote:
>
>     I will contribute too insha Allah
>
>     On Fri, 8 May 2020, 5:54 pm Hedrick Godson's,
>     mailto:hedrickgod...@gmail.com>
<mailto:hedrickgod...@gmail.com
<mailto:hedrickgod...@gmail.com>>> wrote:
>
>         Successful cloned it. Looking forward to build
this with you guys
>
>         On Fri, 8 May 2020, 18:28 Duah Sylvester
>         mailto:duahsylveste...@gmail.com>
<mailto:duahsylveste...@gmail.com
<mailto:duahsylveste...@gmail.com>>>
>         wrote:
>
>             Thank you very much! I will get it done
>
>             On Fri, May 8, 2020, 15:04 Sherif Adigun
>             mailto:adigunshe...@gmail.com>
<mailto:adigunshe...@gmail.com
<mailto:adigunshe...@gmail.com>>> wrote:
>
>                 Thank you. Let's build on this and
improve it.
>
>                 On Fri, May 8, 2020, 1:02 PM Luqman
Shofuleji
>                 mailto:luqmans...@gmail.com> <mailto:luqmans...@gmail.com
<mailto:luqmans...@gmail.com>>> wrote:
>
>                     Hi,
>
>                     I've just forked the repository on
your github account.
>
>                     On Wed, May 6, 2020 at 4:21 PM
Sherif Adigun
>                     mailto:adigunshe...@gmail.com>
>                     <mailto:adigunshe...@gmail.com
<mailto:adigunshe...@gmail.com>>> wrote:
>
>                         Thanks. Checked. Good job. I
think I've got more
>                         features than you.
>
>                         Latest commits now have
authentications
>
>                         On Tuesday, May 5, 2020 at
9:37:26 PM UTC+1,
>                         Sherif Adigun wrote:
>
>                             I am currently building an
open source
>                             school Management System on
django and it's
>                             currently available on GitHub.
>
>
https://github.com/adigunsherif/Django-School-Management-System
>
>                             I need contributors and
collaboration.
>
>                             Feel free to fork me on
GitHub, send a
>                             message and let's build a
solution
>
>                         --
>                         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
<mailto:django-users%2bunsubscr...@googlegroups.com>
>                       
 <mailto:django-users+unsubscr...@googlegroups.com

Re: Open Source IDE to start with Django Web development

2019-11-07 Thread johnf
Every time I see one these which is the best IDE - I never see WingIDE.  
I often wonder why.  It works as well as any other of the suggestions?


Johnf

On 11/7/19 5:38 AM, Siratim Mustaquim wrote:
Why don't you just try a few IDE's and text editors, IDK how much OSS 
or NonOSS IDE will affect your project, but if 'you' don't feel 
comfortable with it, I can guarantee, that will affect your project.


Assuming u are not in a limited internet connection package, download 
a few of the available ones, and start using them.


PyCharm IDE is a great tool. But it may feel big and bulky sometimes,
while VSCode editor is faster in terms of opening projects.

I tried Geanny, didn't like it, because it made some weird behavior I 
terms of indentation and tabs, I couldn't figure how I could make 
"tab=4spaces" instead of "tab=1tab".


Vim and Vim like ones are too difficult for me, so I skipped.

I saw people developing python in Visual Studio. Again, amazing IDE, 
might feel a bit heavy at one point.


And last but not least, The one and Only IDLE.
I still like it, and for quick scripting and quick checks, amazing.

So, pick one that is comfortable for you. What is easy to me might not 
be the same for u. Try a few, find what u like.


Happy Coding

On Thu, Nov 7, 2019, 7:03 PM vineet daniel <mailto:vineetdan...@gmail.com>> wrote:


VSCode.

On Thu, 7 Nov 2019, 16:39 John McClain, mailto:jmcclain0...@gmail.com>> wrote:

agreed, but...

pycharm is dedicated to python and vs code is generally
suitable for any others assuming the person operating can
configure their environments.

the person was asking for an IDE suitable for python
specifically which is why I throughout pycharm

ultimately, I would go with vs code but it takes a bit more
knowledge than pycharm does

On Thu, 7 Nov 2019 at 11:00, Parth Joshi
mailto:joshipart...@gmail.com>> wrote:

VS Code works like a Charm. (Pun intended :-) )

There are lint, autocomplete and git extensions which you
can use for setting up dev environment.

Regards,

Parth Joshi




On 06-Nov-2019, at 4:22 PM, himanshu goyal
mailto:hgoyal1...@gmail.com>> wrote:

To Community,

Greetings!

Could you suggest a good open source IDE for Django? URL
to download will be helpful.

Thanks,
Himanshu
India

-- 
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/767f5e59-20b7-4a3a-989a-dedb0e40ceff%40googlegroups.com

<https://groups.google.com/d/msgid/django-users/767f5e59-20b7-4a3a-989a-dedb0e40ceff%40googlegroups.com?utm_medium=email&utm_source=footer>.


-- 
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/37EB9045-4C0B-465E-BDF8-C90A73956A45%40gmail.com

<https://groups.google.com/d/msgid/django-users/37EB9045-4C0B-465E-BDF8-C90A73956A45%40gmail.com?utm_medium=email&utm_source=footer>.



-- 
John McClain


Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@gmail.com <mailto:jmcclain0...@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
<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/CAN-hv_oUtRDmx0y6i1oRZvHTXK-qgiUF%2Bq5r5VJMDrCTjja7Ow%40mail.gmail.com

<https://groups.google.com/d/msgid/django-users/CAN-hv_oUtRDmx0y6i1oRZvHTXK-qgiUF%2Bq5r5VJMDrCTjja7Ow%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google

Groups "Django users&quo

Re: is there a WYSIWYG for Django

2020-02-08 Thread johnf
Thanks that is a start.  I would also like something that will help with 
design of the pages/views.


Johnf

On 2/8/20 7:51 AM, Andrew C. wrote:

Try Quill.js. If you google Quill.js and Quill.js Django, I believe
you'll find the Django package that goes along with that text editor.
Really, you only need the Quill.js code for your template. WYSIWYG is
just a user typing in HTML without realizing it. Just save the HTML
(because the rest is escaped while the user is typing).

It's also useful if you escape all instances of a script tag in case
someone inputs an unescaped . Your server wouldn't be
destroyed necessarily, but there could be some XSS that you want to
avoid.

On 2/8/20, john  wrote:

Hi,

I realize that Django does not have a frontend but is there a
tool/package that works well for WYSIWYG a simple website?

Johnf

--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/da5f5c36-0bca-4a47-d91d-5c67b657c7a5%40jfcomputer.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2cdcf4aa-07db-446e-8597-585b5c571639%40gmail.com.


Re: is there a WYSIWYG for Django

2020-02-08 Thread johnf
Thanks Fiber looks better.  But you did say you use mostly TinyMCE.  I 
can develop the site (it's just as straight forward with some pictures, 
menu and a few pages) then hand that over to the owners to maintain 
using TinyMCE??  What about mobile etc...?


Johnf

On 2/8/20 8:36 AM, Bill Freeman wrote:

I have used Django Fiber: http://ridethepony.org/
And several other CMS.  I mostly used TinyMCE.
The world may have moved on.

On Sat, Feb 8, 2020 at 11:02 AM johnf <mailto:fabiani.j...@gmail.com>> wrote:


Thanks that is a start.  I would also like something that will
help with design of the pages/views.

Johnf

On 2/8/20 7:51 AM, Andrew C. wrote:

Try Quill.js. If you google Quill.js and Quill.js Django, I believe
you'll find the Django package that goes along with that text editor.
Really, you only need the Quill.js code for your template. WYSIWYG is
just a user typing in HTML without realizing it. Just save the HTML
(because the rest is escaped while the user is typing).

It's also useful if you escape all instances of a script tag in case
someone inputs an unescaped . Your server wouldn't be
destroyed necessarily, but there could be some XSS that you want to
avoid.

On 2/8/20, john  <mailto:jo...@jfcomputer.com>  wrote:

Hi,

I realize that Django does not have a frontend but is there a
tool/package that works well for WYSIWYG a simple website?

Johnf

--
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 todjango-users+unsubscr...@googlegroups.com  
<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/da5f5c36-0bca-4a47-d91d-5c67b657c7a5%40jfcomputer.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
<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/2cdcf4aa-07db-446e-8597-585b5c571639%40gmail.com

<https://groups.google.com/d/msgid/django-users/2cdcf4aa-07db-446e-8597-585b5c571639%40gmail.com?utm_medium=email&utm_source=footer>.

--
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 
<mailto:django-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAB%2BAj0tdqykbk5YyXkx_Axo-3MuyM%3DS_86qJWpzXan%2B-whfNfg%40mail.gmail.com 
<https://groups.google.com/d/msgid/django-users/CAB%2BAj0tdqykbk5YyXkx_Axo-3MuyM%3DS_86qJWpzXan%2B-whfNfg%40mail.gmail.com?utm_medium=email&utm_source=footer>.


--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d194dd78-88e0-eb32-f2bf-035c6a740e1a%40gmail.com.