Re: Deciding on Database

2020-06-04 Thread RLM

Hello

I am a 25 year python dev working with Flask and Django experience and 
this is totally off topic but may I suggest you look at Hugo the static 
web site generator in the Go language.

It is easy to use, easier than some pythonic web site generators.

Easy to modify and update and is essentially ready to use and can be 
fully manipulated to do what you want. I used this system on AWS for a 
Australian national web site and find updating documents and comments is 
very simple, plus no one  can modify anything unless you grant express 
permissions. Plus you can decide whether it becomes public or private 
with the click of a checkbox.


Used in conjunction with AWS S3 buckets  it provides, for us, a very 
workable system. With AWS security the site is entirely safe.


My utmost apologies to the Python, Django community but sometimes other 
tools are worth looking at.


Roger



On 4/6/20 1:40 pm, Rushikesh Patil wrote:

Hello everyone, Hope you are doing well.

I am building a website with django which will be used to view 
different documentation related to the construction industry, in an 
easy to use and share format.


The main viewer page will have a vertical nav bar with different 
chapters and sections. And the right side will be the content.


What I am trying to figure out is instead of doing a hardcoded HTML 
css static file, use the database to create a html file . What do you 
think is the best way to go about ir. I thought about it a lot and the 
problems I see is where there are lists/tables/images in content. I am 
having a hard time deciding what models should I create.


Please see attached for what I am trying to build.
--
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/eca1e72f-7b8f-4d14-884f-d7a3b2d67491%40googlegroups.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/f8609fd2-849a-7d5c-5f65-4d7a0046f71f%40gmail.com.


Re: open source advice needed

2020-02-06 Thread RLM

Hi Kimberley.
My daughter is a senior IT teacher in a school cluster of 4 schools. She 
creates her learning, curriculum and tutorials on Moodle, she is very 
good at using it.

She had much similar idea and concept as you describe below.
Being in Victoria Australia, the Education curriculum (IT) changes with 
the wind so she uses tools the education department provides for. But 
her preference is Moodle which her current school refuses to install.
I set up a server on AWS (Amazon Web Services)  for her Moodle site and 
the students found it easy to learn from. She found AWS more cost 
effective that other ISPs.


Over the years we (she and I)  have looked at a number of options but 
Moodle has significantly matured and is a stand out system.


I hope this helps in some way.
Roger

On 7/2/20 10:06 am, Kimberly Regan wrote:

Hey Andrew,
Thanks for reading out. I'd love to share more about this project. I'm 
attaching an NDA if you wouldn't mind signing and sending back so we 
can chat about it.  Thank you so much!

Best,
Kimberly


On Tue, Jan 28, 2020 at 5:03 PM Andrew C. > wrote:


Hi Kimberly,

Django is mostly for website development. If you can tell us a
little bit about your model and some plans, that would be great.
I’d love to help another Harvard student in their endeavors since
many give up after graduating grad school (especially those
undergrads...). Again, let us know what your model actually is.

Best regards

On Tue, Jan 28, 2020 at 7:18 PM Kimberly Regan mailto:k8re...@gmail.com>> wrote:

Hello,
I have an idea that I pitched and placed 4th at the Harvard
Zaentz Early Innovation Challenge. I've been implementing the
model at my school for 20+ years., The technology, a learning
management system type program, will support the model to
streamline procedures in classrooms toward effective and
efficient student learning. I'm trying to find out what I need
to do to find a developer, what language I use (meaning
software specs), and how many people/hours would it take to
develop it. I have a doctorate in education, but a newbie in
technology development. A friend recommended I post a question
to this site. Any ideas out there? 
Thanks so much!
Kimberly
-- 
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/540e150c-535b-45dd-a56e-345352bba167%40googlegroups.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/CAJVmkNmmdv3ztXN5jnKMptfyR6UHXxByZvXC2e5v01A8RZVWrA%40mail.gmail.com

.



--
/Kimberly/
/
/
Dr. Kimberly Regan

Chief Executive Officer
*Sierra Nevada Academy Charter School & SNACS Preschool*

/PLAY:^Promoting Learning and Accountability with Young Children^/*®*

/^
/

//


--
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/CAOebuwbbHvjs9sWSt3mAJ-Ok9pUJJMh0GSniLjj4aP6OmH7CNg%40mail.gmail.com 
.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0a0a3b26-520e-dd1b-8840-956eb0258724%40gmail.com.


Re: How can I host my application in web hosting?

2019-12-02 Thread RLM

Apologies for triple post, dont know why it happened.
Roger

On 2/12/19 9:09 am, RLM wrote:


Hello.
AWS has no limitations.
Simply start an instance running ubuntu, windows, or what ever, just 
like you have for development,  install dependencies and updates and 
you should be good to go. Read the Docs first, it's not click and go 
like some other providers.
With AWS you are totally responsible for security and everything else, 
and can lock it down so that your server is virtually hidden from the 
web. It's just like you are running a home dev machine, it's brilliant 
for our purposes. And for us, it's not expensive.


On AWS we are currently running several Hugo static sites, a ubuntu 
server with python3.8, we've got django on it but not used since we 
moved to Hugo.


HTH
Roger

On 1/12/19 5:00 pm, Jorge Gimeno wrote:

Deb,

Digital Ocean will allow you to run what you can install.  If you can 
get it on the server, you can use it.


Heroku and Python Anywhere do have specific services that are 
available.  You can check out their documentation to see what they are.


I don't know much about AWS, so that I will not be able to answer.

Hope it helps!

-Jorge

On Sat, Nov 30, 2019 at 6:01 AM Debabrata Chakraborty 
mailto:debobroto.c...@gmail.com>> wrote:


Hi everyone,

I'm a beginner Django developer. So my apologies in advance for
newbie like questions.

I am building my site with *" *Django version 2.2.5 *"* and *"
*SQLite 3.30 *" *in back-end. My question is -

*#* Do services like "Heroku", "Digital Ocean", "Python Anywhere"
and "AWS" - have limitation on _which version of Django_  or
_which DBMS_ I can use?

I've seen this before with PHP/MySQL hosting where some hosting
companies will limit which version of PHP or MySQL one can use.
Is the same applicable to Django hosting in the above mentioned
hosting platforms as well?

I will very much grateful if you can help me out with this
confusion.

Best

Deb
-- 
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/a6ccc082-ae9d-4f67-8038-9db16008b956%40googlegroups.com

<https://groups.google.com/d/msgid/django-users/a6ccc082-ae9d-4f67-8038-9db16008b956%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/CANfN%3DK9JwU8_NbuTUwhuO7YB_WiUKthkNNSwhO0OPE49pgd8tA%40mail.gmail.com 
<https://groups.google.com/d/msgid/django-users/CANfN%3DK9JwU8_NbuTUwhuO7YB_WiUKthkNNSwhO0OPE49pgd8tA%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/6865a441-dc8f-a1ec-49e2-a123bb1f9b47%40gmail.com.


Re: How can I host my application in web hosting?

2019-12-01 Thread RLM

Hello.
AWS has no limitations.
Simply start an instance running ubuntu, windows, or what ever, just 
like you have for development,  install dependencies and updates and you 
should be good to go. Read the Docs first, it's not click and go like 
some other providers.
With AWS you are totally responsible for security and everything else, 
and can lock it down so that your server is virtually hidden from the 
web. It's just like you are running a home dev machine, it's brilliant 
for our purposes. And for us, it's not expensive.


On AWS we are currently running several Hugo static sites, a ubuntu 
server with python3.8, we've got django on it but not used since we 
moved to Hugo.


HTH
Roger

On 1/12/19 5:00 pm, Jorge Gimeno wrote:

Deb,

Digital Ocean will allow you to run what you can install. If you can 
get it on the server, you can use it.


Heroku and Python Anywhere do have specific services that are 
available.  You can check out their documentation to see what they are.


I don't know much about AWS, so that I will not be able to answer.

Hope it helps!

-Jorge

On Sat, Nov 30, 2019 at 6:01 AM Debabrata Chakraborty 
mailto:debobroto.c...@gmail.com>> wrote:


Hi everyone,

I'm a beginner Django developer. So my apologies in advance for
newbie like questions.

I am building my site with *" *Django version 2.2.5 *"* and *"
*SQLite 3.30 *" *in back-end. My question is -

*#* Do services like "Heroku", "Digital Ocean", "Python Anywhere"
and "AWS" - have limitation on _which version of Django_  or
_which DBMS_ I can use?

I've seen this before with PHP/MySQL hosting where some hosting
companies will limit which version of PHP or MySQL one can use. Is
the same applicable to Django hosting in the above mentioned
hosting platforms as well?

I will very much grateful if you can help me out with this confusion.

Best

Deb
-- 
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/a6ccc082-ae9d-4f67-8038-9db16008b956%40googlegroups.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/CANfN%3DK9JwU8_NbuTUwhuO7YB_WiUKthkNNSwhO0OPE49pgd8tA%40mail.gmail.com 
.


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a677294d-25da-6165-8aa4-f78aab170b56%40gmail.com.


Re: database migrations

2019-08-03 Thread RLM
Why try to avoid re populating the database? That's the easy part, 
figuring what went wrong is more difficult.You don't need a lot of data 
to get an app working, you just need to understand what you want and how 
to achieve it.


When I was learning django I rebuilt my events database 20 times 
sometimes using the original data and sometimes by starting afresh.
If you have valid working data consider writing the data tables to csv 
then write that data into the new tables, it takes a couple of seconds 
to recreate a table once you have the fields the same as the csv. I 
found that when using a csv in spreadsheet it highlighted issues in the 
data sets


When experimenting, I suggest use SQLite and simply rename the database 
in the /dev app and start a new SQLite database by renaming it in the 
config file. That way you have previous data and new data in the same 
django application.


Also you could simply create new models in the current database and 
repopulate only the fields you need in the new model.
In all the above the main trouble will be joins. Get one small fields 
wrong and the join fails.


Cheers
Roger

On 3/8/19 8:18 pm, Perceval Maturure wrote:
Question is what’s the best way forward to avoid situations where u 
will have to create a new database if ur applications do not work with 
the current databases so as to avoid populating the database with data 
again





Sent from my iPhone

On 02 Aug 2019, at 14:39, Perceval Maturure > wrote:



Dear all
creating a new database as applications increase has been one of the 
solutions to some of the errors i have encountered especially after 
adding a django cms by hand in my development environment.


i cant imagine a situation like that in a production environment as 
this will mean re-entry of data.

please share some thought*
Regards
--
*Perceval Maturure*
*083 303 9423
*

--
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/2D3BA6A6-EDC6-4599-B519-64593AE64A1F%40gmail.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/99e1d459-d31f-a527-c461-508bb13147b9%40gmail.com.


Porting Django app

2019-05-16 Thread RLM

Hello all.
I eventually will need to put my dedicated Django app on another system 
owned by a Public institution. The app correlates each data set of 26 
million plus samples to a QR code for each.
Security is major  so nothing can be web based, it must be in house and 
disconnected from the external web.


A problem is I'm developing on Linux and Mac and much of the world uses 
Windows 10 et al.


Installation of python3, Django, mysql and the app would rely on the IT 
people at the institution who do not like installing software on secure 
systems.
I would also point out that schools here also fall into the "will not 
install that software" category significantly limiting student's ability 
to learn modern systems.


I trialed compiling Python3 app to an .exe file, works ok, but am 
concerned that P3/Django will not do so.


Bio: I'm in my 70's, been developing web apps for 25 years and do not 
want to learn C and C++.


Can anyone advise me how to go about providing the system at minimum 
problems for the IT sector of the institution.

Thanks in  advance

Roger

--
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/f68670b3-a75d-61ef-2f5b-61065e5a9f56%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django issue with NoModuleError

2019-05-13 Thread RLM

Hi Everyone.
I have been away from Django for the past 18 months and am refreshing to 
use it for a complex samples storage project.


Python 3.7, Django 2.2 the LTS fails with too many errors.

Unfortunately I have had this particular error every time I try Django 
over the past 18 months which is why I had to resort to HuGo for a 
particular web site build.


I feel there is something I have forgotten to do and will appreciate 
help understanding why it occurs.


I have researched but no advice helps.
I have seen pages on PYTHONPATH and the like but problem is not solved 
and it seems to have been an issue for at least a year.


The project is called Storage, it's app is called samples.

The problem I have is the ModuleNotFoundError: No module named 'samples'.

Where samples is the only app.

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'samples',

root urls/py is:
urlpatterns = [
    path('admin/', admin.site.urls),
    path('samples/', include('samples.urls')),
]

samples/urls.py is:
from django.urls import path
from . import views

urlpatterns = [
    path('',views.index, name='index'),
]

There are no models.

samples/views.py is:
from django.shortcuts import render
from django.http import HttpResponse

def index(request):
    return HttpResponse("Hello from the RMH App")

Thanks for any help
Cheers
Roger


--
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/dee6f7a2-23e9-eaa7-052e-fb714dd7f3b4%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Troubling installing Python 3 on my iMac

2019-04-30 Thread RLM

I guess you installed Python3.7.2 or similar

If so you can call it in a terminal with python3 not just python. Open a 
terminal and type python3 it should start

python 7.n is the operating system version.
It is important to use pip3 and  use virtualenv to create the python 3 
environment.


use pip3 to install django in your environment.
When you look at tutorials in google or other specify python3 and >2018 
so you don't get out of date tutorials of which there are hundreds.


Cheers
Roger

On 30/4/19 1:17 pm, James wrote:
I downloaded the file from the python website and went through the 
entire installation process... accepting all of the default values. 
 However, when I went to my Terminal window and typed python, it still 
shows the older version:


Python 2.7.10 (default, Feb 22 2019, 21:17:52)

[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] on darwin


What did I do wrong?  I need to get this all setup before I can start 
the Django tutorial.


Thank you!

--
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/d4a9335d-5067-4620-882e-e10a6d04dbcd%40googlegroups.com 
.

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/1ad8c88c-2268-b5fd-eb10-30f7a9c88b76%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Hosting recommendations please

2019-04-02 Thread RLM

Have you had a look at AWS?
We have had success with it.
Roger

On 2/4/19 6:08 pm, Mike Dewhirst wrote:
I have to move three Django websites away from my current VM service 
provider by the end of April because he is going out of the VM business.


One is a plain Mezzanine CMS on one VM running Nginx/Gunicorn and the 
other two are on the second VM running Apache and mod_wsgi.


I'm most familiar with Ubuntu 16.04 and hope to go to 18.04.

I think the RAM requirements are around 4GB for the Apache sites and 
half that for Nginx. Haven't done any profiling.


I'm in Australia. I'm after stability and reliability and if I'm 
lucky, scalability.


If you have any negative comments about providers please send them 
off-list.


Many thanks

Mike




--
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/c6d671bc-a01a-e17b-f894-ecf79ebbe90d%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Providing help on a website (basic CMS for on-site site documentation)

2019-02-22 Thread RLM
Sorry to go off topic but I can recommend HuGo for simple markdown web 
pages.

Cheers
Roger

On 22/2/19 5:24 pm, Bernd Wechner wrote:
Hmmm, no-one has any thoughts here ... and I'm on ma' own reinventing 
the wheel? Surely tehre's a canonical way to provide help on Django 
website . I'm leaning toward simple flatpages app with a tinymce 
editor for them for the admin.


On Tuesday, 19 February 2019 16:26:57 UTC+11, Bernd Wechner wrote:

I'm at the point of wanting to write some help for a website, the
standard helpfile sort of scenario ;-). If that means little to
you, just a hierarchy of pages that document things and can be
linked.

I wrote page one with the Django flatpages app:

https://docs.djangoproject.com/en/2.1/ref/contrib/flatpages/


But it's not real comfy in terms of editing and maintaining. So I
looked on-line for solutions and of course nothing with "help" in
the search terms is going anywhere fast (finds me a lot of help
about Django ;-). so better keywordss needed but I have found a
pile of maybe options and am suddenly bamboozled by what is vogue,
current, maintained, has a lasting future etc.

https://github.com/klen/django_markdown


Untouched in 4 years with 22 open issues Hmm.

And this looks nice:

https://github.com/mjr27/django-flatpages-tinymce


but untouched in 7 years and 4 open issues.

Now untouched doesn't mean bad, could just be mature, stable and
works perfectly, already fro 7 years. These are the things it's
hard to gauge. But if I'm looking at TinyMCE how about:

https://github.com/aljosa/django-tinymce


on which it depends. NO bad, updated a month ago to make it work
with Django 2.1 so seems alive! But my site is math heavy so I
want equation ease so how about:

And this looks good:

https://www.codecogs.com/latex/integration/tinymce_v3/install.php


This looks maybe:

https://github.com/iCAPLyon1/tinymce-formula


This looks unconvincing:

https://github.com/foraker/tinymce_equation_editor


and do we want this:

https://github.com/Tivix/django-flatpages-nav


or this as well:

Or hang on why do this piecemeal why not use Wagtail from the word go:

http://docs.wagtail.io/en/v2.4/index.html


Or would wagtail introduce too much coordination trouble between
its templates and my sites ... etc. etc. I'm full of questions and
really just wondering, is there a canonical solution to a site
documentation page hierarchy and managing it nicely?

Regards,

Bernd.


--
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/750a97d8-87f9-42f4-997e-5810e1a5c48a%40googlegroups.com 
.

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/988ab087-cc9a-e2c0-67a5-a9cb8d342eaa%40gmail.com.
For more options, visit https://groups.google.com/d/optout.