Django user input steps needed - python

I'm a noob I know.
So I want to build a web app that allows the user to enter text. Then have the web server send an email based on the text with a message from another file.
What would be the optimal way to accomplish this? I am new to Django but have experience with Python. If someone could give me a basic bullet point way on how to do this I can google the rest. I just don't know where to start.

There is plenty of good guides online. The django documentation will take you step by step through making your first django app.
https://docs.djangoproject.com/en/1.9/intro/tutorial01/
Django has a sendmail library that you can use once you get your app started
https://docs.djangoproject.com/en/1.9/topics/email/

This guide is help you to go step by step
Tango with Django : http://www.tangowithdjango.com/book17/
Or
http://tutorial.djangogirls.org/en/index.html
as well you have to follow official documentation.because Tango with Django may cause version issues but Django girls tutorial seems updated.
Official : https://docs.djangoproject.com/en/1.9/intro/tutorial01/

Related

Django application assistance?

Hi everyone I am new to django and could use help building an ERP system with it. Can anyone assist me, i have discord if you are interested in helping. I figured we could communicate better on it. Please help me with django I am going nuts
(Unfortunately I cannot comment because of low reputation points)
One of the first and most important steps of building a web application / service (that uses models) is to identify the needs and features and then implement them on models. You can start by working on your application's models and then the rest of development process will be easier to work on.

Authenticate a Django/Appengine project using Firebase

I currently have google and facebook authentication for my application. I would like to add firebase-auth as the backend for my Django/appengine backend. The tutorial i followed (https://cloud.google.com/appengine/docs/standard/python/authenticating-users-firebase-appengine) only show how to use it for a python Flask backend.
Does anyone know how to set up firebase in a Django backend that uses appengine?
You should follow the same logic mentioned in the tutorial that you indicated here. As per the documentation informs:
The sample app uses Flask because of its simplicity and ease of use, but the concepts and technologies explored are applicable regardless of which framework you use.
So, the concepts are the same for any framework, which should work for you using Django. Since there isn't a specific tutorial for the use of Django, I recommend you take a look at the below article, to better understand the integration of Firebase and Django, so you can implement it on your
Python Django with Google Firebase : Getting Started, Intro, Basic Configuration & Firebase Authentication #Part1
Let me know if the information helped you!

django oscar and djangocms

I am interested in combining django-cms for content management and django oscar for e-commerce.
Can someone give me some direction, preferably someone that has already successfully combined the two:
[A] Should the structure be a base oscar site, with the oscar templates modified to insert the necessary placeholders to permit cms etc...,
OR
[B] Should the structure be a base django-cms site, with oscar being handled by plugins etc...
My gut feeling is that it should be [A], but please correct me if I am wrong.
Any other suggestions would be appreciated, as there is little online, and I have written to the author of oscar with no response. I am aware of THIS link, which doesn't address implementation, only comparing compatibilities.
This combination is something that I've been looking at for a while and actually had a working prototype. Without knowing your full use case it's difficult to advise properly.
What I required sounds very similar to you, a site that can have CMS editable pages on the same sub domain (e.g. www.myshop.uk/shop www.myshop.uk/cms-pages) as the oscar provided pages. I wanted to have the initial homepage driven by the CMS and a separate area of the site for the E-commerce pages.
If your requirements are the same as mine, the best way to achieve the integration is via an app hook in Django CMS, this would mean that the CMS is the controlling package: http://docs.django-cms.org/en/release-3.3.x/how_to/apphooks.html
I used the following documentation, the code didn't work on more recent versions of Oscar and CMS but was a good guide of what should be possible and a push in the right direction: https://pypi.python.org/pypi/djangocms-oscar/0.1
I will be attempting this again very soon as I have a new site where the CMS and E-commerce site are separate and need merging under the same sub domain.
Is this still an issue for you?
I am considering either contacting the author about updating the previous project "djangocms-oscar" or creating a new one with supporting docs for others.
I have worked on the very similar configuration you have asked here. A pure blend of django-cms with django-oscar.
Here's what I did and it works perfectly fine.
First setup a new project with cookiecutter-django-cms
Then install django-oscar inside it.
Setup your shop.
As long as I know, it works fine.

Django facebook, twitter and google + authentication

I need to get facebook, google+ and twitter authentication for my django app. What module should I use? I am using Django 1.8 and I've checked a couple of them but which one is the best? Any suggestions will be appreciated.
Thanks in advance!
This is an approximation using the Django rest framework https://github.com/PhilipGarnero/django-rest-framework-social-oauth2. You should be familiarized with OAuth2 protocol (basically you use someone else's security to authenticate an user in you app). Also there is this library https://github.com/requests/requests-oauthlib, look at the documentation, it's pretty well explained and has examples with Tumblr, Facebook,etc. The lastone works with Python in general, no Django needed (just in case).
Go for python-social-auth. It is good and well documented. You can start from here for introduction.

A question about Django and Google Apps

Just wondering about this, is it possible to use Django with the Google Apps API's? I have a small organization that uses Google Apps Education Edition. I was thinking about making a small intranet using Django, and I would love if the first page they saw when they logged in had a few widgets with their email, calendar, maybe docs. I looked over some of the api's, and it seemed that getting the data was possible using the gdata library; but when I looked into using Django, all the search results returned pages about running Django on the app engine, nothing about Google Apps. Just looking for a little guidance, if anyone knew a page or a tutorial where someone had done this.
Thanks!
Yes, it is possible. This is not a question about Django and GAE in particular; you may have more luck searching for tutorials on using Django with generic web APIs.
Here's one I found almost immediately; it uses the del.icio.us API but the idea is the same.
Yes, it is. See this help topic.

Categories