djangoproject
159 subscribers
2 videos
8 files
550 links
connect with us:
@XtakjoyX
Download Telegram
https://us.pycon.org/2018/events/edusummit/

In 2018, #PyCon will be holding its sixth annual Python Education Summit. The Summit is a gathering of teachers and educators focused on bringing coding literacy, through Python, to as broad a group of audiences as possible. We invite educators from all venues to consider joining the discussion, share insights, learn new techniques and tools and generally share their passion for education. We are looking for educators from many venues: authors; schools, colleges, universities; community-based workshops; online programs; and government. Not only will we have a wide array of full-blown talks, we will also have a round of lightning talks!
https://www.eurocon2018.pl/

EUROCON 2018
​GGWO CONFERENCE
6-10 MARCH , 2018

#Eurocon is GGWO's annual European convention where Greater Grace pastors, missionaries, and church family members from all of Europe and abroad gather to share and receive encouragement in the Bible. It's a time of fellowship, teaching, learning, worshipping the Lord, and much international food and fun.
http://books.agiliq.com/projects/django-api-polls-tutorial/en/latest/

Building #APIs with #Django and #Django_Rest_Framework(#DRF)

Introductions
Setup, Models and Admin
A simple API with pure Django
#Serializing and Deserializing Data
Views and Generic Views
More views and viewsets
#Access_Control
#Testing and Continuous Integeration

Testing and Using API with Postman
Documenting APIs (with Swagger and more)
https://2018.djangocon.eu/

#DjangoCon Europe 2018 in Heidelberg
May 23-27, 2018 · Heidelberg, Germany

We are trying very hard to make this conference enjoyable to you even before it has started. One of the things we hope will be helpful is this timeline. Please understand that this is a rough timeline – as we cannot see into the future, some things might move around, but we will communicate every noticable change in a blog post!
https://2018.djangocon.us/

Six days of talks, sprints, and tutorials in San Diego
October 14-19 2018

#DjangoCon US has something for everyone, from the person who develops Django applications for a living to the person who just tinkers in their spare time. You'll discover details about a range of diverse applications that people from all over the world are building with Django, get a deeper understanding of concepts you’re already familiar with and discover new ways to use them, and have a lot of fun!
https://juliensalinas.com/en/python-flask-vs-django/

Python #Flask vs #Django

My experience of Flask is not as extensive as my experience of Django, but still recently I’ve developed some of my projects with Flask and I could not help comparing those 2 Python web frameworks. This will be a quick comparison which will not focus on code but rather on “philosophical” considerations.
@#classmethod vs @#staticmethod vs "plain" methods
What's the difference?

class MyClass:
def method(self):
"""
Instance methods need a class instance and
can access the instance through self.
"""
return 'instance method called', self

@classmethod
def classmethod(cls):
"""
Class methods don't need a class instance.
They can't access the instance (self) but
they have access to the class itself via cls.
"""
return 'class method called', cls

@staticmethod
def staticmethod():
"""
Static methods don't have access to cls or self.
They work like regular functions but belong to
the class's namespace.
"""
return 'static method called'

# All methods types can be
# called on a class instance:
»> obj = MyClass()
»> obj.method()
('instance method called', <MyClass instance at 0x1019381b8>)
»> obj.classmethod()
('class method called', <class MyClass at 0x101a2f4c8>)
»> obj.staticmethod()
'static method called'

# Calling instance methods fails
# if we only have the class object:
»> MyClass.classmethod()
('class method called', <class MyClass at 0x101a2f4c8>)
»> MyClass.staticmethod()
'static method called'
»> MyClass.method()
TypeError:
"unbound method method() must be called with MyClass "
"instance as first argument (got nothing instead)"
https://www.kaggle.com/

The Home of #Data_Science & #Machine_Learning
Kaggle helps you learn, work, and play
https://github.com/pypa/virtualenv/issues/1059

Earlier today I installed python3.6 on my debian machine. Python3.6 was made available in buster distribution. When I try to create a virtualenv with python3.6.

python3.6 -m venv venv

gives the following error.

The #virtual_environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command.

apt-get install python3-venv

You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.

Failing command: ['/home/float/test/t/bin/python3.6', '-Im', 'ensurepip', '--upgrade', '--default-pip']

I do have python3-venv (3.5.3-1) installed. Why do I get this error? If I run the command

py3 -Im ensurepip —upgrade —default-pip

it says

/usr/bin/python3.6: No module named ensurepip

I don't have trouble creating virtualenvs using the default python3 version (3.5.3).

Also , I noticed that I can create a virtualenv as follows:

#virtualenv -p python3.6 #venv
https://medium.com/@hassanabid/creating-react-native-apps-with-django-rest-api-59e8417865e9

Creating React Native apps with Django rest-api

I will really appreciate if you support the project by clicking star on Github repository. I will publish new version soon! https://github.com/hassanabidpk/react_pyconlunch

Last week, I delivered a talk about Django for #mobile applications at Pycon Korea. Over the past 6 years, I have been mostly developing mobile applications and contributing to company’s SDKs. Things have changed over past couple of years, as I am no more depending on backend developers to spin off a server for me. Neither I am interested to use automated services like Parse (RIP) or Firebase which hides the complexity and elegance of a backend for mobile applications. I decided to use Django as backend for my mobile applications. Its flexible, stable and customizable. In this blog post, I am going to share basic steps for developing a #React Native app with #Django_rest_api.
Asynchronous

#celery
celeryproject.org
Distributed task queue.

#flower
pypi.python.org/pypi/flower
Tool for monitoring and management of Celery tasks.

#django-channels
pypi.python.org/pypi/django-channels
Official Django websockets interface, can also be used as task queue.

#rq
pypi.python.org/pypi/rq
RQ is a simple, lightweight, library for creating background jobs, and processing them.

#django-rq
pypi.python.org/pypi/django-rq
A simple app that provides django integration for RQ (Redis Queue).

#django-background-#tasks
github.com/arteria/django-background-tasks
Database backed asynchronous task queue.
https://github.com/Djeact/Djeact-RoadMap

What is Djeact?

The name of Djeact comes from the combination of Django and React. Django is a python web framework and React is a javascript library for building user interfaces. Djeact is a set of libraries which the backend is written by django and the UI is written with react. Following libraries have been written so far:

Why #Djeact started?
Why #Django was chosen for #backend?
Why #React was chosen for #frontend?
Why #MIT #License?
https://code.tutsplus.com/tutorials/10-insanely-useful-django-tips--net-974

10 Insanely Useful #Django Tips
There are quite a few great little tricks and tips one could use on their Django projects that would speed up development and save many headaches in the long run. From basic to obscure, these tips can help any skill-level of programmer become more adept with Django and all it's glory.

1. Use relative paths in the configuration
2. Use the {% url %} tag
3. Use Django admin for your PHP apps
4. Use a separate media server
5. Use the Debugger Toolbar
6. Use Django Unit Testing
7. Use a Cheatsheet
8. Utilize django-chunks
9. Utilize Memcache
10. Stop hacking scripts together and just use Django
https://blog.doordash.com/tips-for-building-high-quality-django-apps-at-scale-a5a25917b2b5

Tips for Building High-Quality #Django Apps at Scale:

Be careful about “applications”
Organize your apps inside a package
Explicitly name your database tables
Avoid GenericForeignKey
Keep migrations safe
Squash your migrations
Reduce migration friction
Avoid Fat Models
Be careful with signals
Avoid using the ORM as the main interface to your data
Don’t cache Django models

#learn
The account of the user that owns this channel has been inactive for the last 5 months. If it remains inactive in the next 18 days, that account will self-destruct and this channel may no longer have an owner.
The owner of this channel has been inactive for the last 5 months. If they remain inactive for the next 10 days, they may lose their account and admin rights in this channel. The channel will remain accessible for all users.