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.
Related
I am currently developing my first more complex Web Application and want to ask for directions from more experienced Developers.
First I want to explain the most important requirements.
I want to develop a Web App (no mobile apps or desktop apps) and want to use as much django as possible. Because I am comfortable with the ecosystem right now and don't have that much time to learn something new that is too complex. I am inexperienced in the Javascript World, but I am able to do a little bit of jQuery.
The idea is to have one database and many different Frontends that are branded differently and have different users and administrators. So my current approach is to develop a Backend with Django and use Django Rest Framework to give the specific data to the Frontends via REST. Because I have not that much time to learn a Frontend-Framework I wanted to use another Django instance to use as a Frontend, as I really like the Django Template language. This would mean one Django instance one Frontend, where there would be mainly TemplateViews. The Frontends will be served on different subdomains, while the backend exposes the API Endpoints on the top level domain.
It is not necessary to have a Single Page App. A Normal Website with mainly the normal request/response-cycle is fine.
Do you think this is a possible approach to do things? I am currently thinking about how to use the data in the frontend sites in the best way. As I am familiar with the Django template language I thought about writing a middleware that asks about the user details in every request cycle from the backend. The thought is to use a request.user as normally as possible while getting the data from the backend.
Or is ist better to ask these details via jQuery and Ajax Calls and don't use the django template language very much?
Maybe there is also a way to make different Frontends for the same database without using REST?
Or what would you think about using a database with each frontend, which changes everytime I make a change in the main database in the backend? Although I don't really like this approach due to the possibility of differences in data if I make a mistake.
Hopefully this is not to confusing for you. If there are questions I will answer them happily. Maybe I am also totally on the wrong track. Please don't hesitate to point that out, too.
I thank you very much in advance for your guiding and wish you a nice day.
as per my experience and knowledge, you are almost going towards correct direction.
my recommendation is for making backend rest api Django and django rest framework is the best option however for consuming those api you can look for the angular or react both works very well in terms of consuming API.
Thank you for your input om tripathi.
I think it really does make sense to use the modern js frameworks for consuming a REST API.
I looked a little further into my problem and found multitenancy to fit my requirements perfectly. There are also great plugins and good reads for that use case. Just for others some informations I stumbled upon:
https://djangopackages.org/grids/g/multi-tenancy/
https://www.vinta.com.br/blog/2017/multitenancy-juggling-customer-data-django/
Especially the second link gave me information about different design approaches. For myself I chose to go the way with one database for every Client and then using the site framework from django to seperate data. For the Subdomain resolving I use django-hosts.
Thank you again and have a nice day.
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/
This question isn't related to any programming problem or bug rather it's asked to seek knowledge from django developers. I couldnt find proper info as I'm a novice web dev.
I'm a mobile developer and heard quite alot about django. I have looked it up on the internet and official website, from the looks of it, it looks like a framework that is used for storing and retriving data from the database. What are other uses of this framework?
Can django be used to send and receive data from a mobile device?
Your question is not belongs to this site, btw, yes, Django is one of the most famous web frameworks of python, you can up a server via wsgi (or uwsgi) module and make a rest-api server via rest-api-framework, also create SOA.
It depends on your needs, but I think you can use DRF (Django Rest Framework) to standardize your server.
Django was created by a newspaper that wanted a better way of publishing articles. It is a framework for publishing content in a reliable way, so that different types of articles can have corresponding views.
Since then it has evolved a lot so that it can serve as a back-end for many types of websites. I'd suggest checking the Django tutorial which has a lot of good examples and code samples to run through:
https://docs.djangoproject.com/en/1.9/intro/tutorial01/
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.
Iam looking for a Django or Rails example with Google login+Facebook+Twitter. My goal is to develop something like Nerddinner.com...The example should be updated (most of the examples I found was outdated) and working. Thanks for any advices.
check out devise for rails. it uses omniauth for such purposes and it's very well documented, you shouldn't have any problems with it
You mean an app like django-social-auth?
Check Django Packages to find more.