Stream

Join this community to post or comment

Nina Diana

Questions  - 
 
Coding for Entrepreneurs: Learn Python, Django, and More.
A Programming Class for Non-Technical Founder(s). Learn Django- the #1 Python Frameworks, APIs, HTML, CSS, + Payments.
A Programming Class for Non-Technical Founder(s). Learn Django- the #1 Python Frameworks, APIs, HTML, CSS, + Payments.
1
1
Add a comment...

Anurag Jain

Links & Videos  - 
 
Search is one of the most important and powerful functionality in web applications these days. Without search option, users will have to find their way out to reach the desired content which no one likes to do. In this article, we will discuss how to power up your django website with search functionality using haystack and elastic search.
http://bookofstranger.com/elastic-search-wih-django-haystack-for-search-functionality/
Search is one of the most important and powerful functionality in web applications these days. It helps users to easily find content, products etc on your website. Without search option, users will…
9
Add a comment...

Mauro Crociara

Questions  - 
 
Hi guys, someone know how to create groups that are not project wide, but application/instance wide? If I have a company/community/project how an user can creates groups related to it's own project/company without name clash?
1
Alexandro Colorado's profile photoMauro Crociara's profile photo
2 comments
 
Could you be more specific?
Add a comment...

Chris Bartos

Links & Videos  - 
 
You guys want to learn how to make the most out of Django (and any other) tutorials for that matter?

Read about Why Tutorials SUCK! And what to do about them!
6
Add a comment...
 
Hey everyone! I have a certain website, using Greek as the main language, and I want to make it multilingual, add English and maybe French. It contains jokes in Greek, so I think I need to make another database for the English jokes(I have no idea how to make two or more databases work together), but I also use django-taggit, and I'm not sure how to separate English jokes' tags from Greek jokes' tags. Also, the templates are all in Greek, so I need to change that as well... I'm sorry if it's too vague. Has anyone been through that process? Any useful links, on how to do it efficiently? Any help is welcome, thank you!
1
Code Revolution's profile photoKolozsi Róbert's profile photo
7 comments
 
You are welcome. Happy learning!
Add a comment...

Nkansah Rexford

Links & Videos  - 
 
In this tutorial, you'll read about setting up PostgresSQL, Django, Nginx, and Gunicorn with VirtualenvWrapper on your Ubuntu 16.04 LTS box
4
5
Nkansah Rexford's profile photoDerek Hohls's profile photo
6 comments
 
The point is not just Django because you have all the other dependencies as well. Docker can also replace the need for a virtualenv altogether (e.g. see https://realpython.com/blog/python/django-development-with-docker-compose-and-machine/). Plus you missed my point about production vs. deployment.  Local development never works exactly the same as on the server (this is a well-known problem and one of the motivations that the developers of Docker understood).

And yes, I have always used virtualenvs in the past; no doubt they are useful when you want to work on different Python projects; especially if they are small standalone ones.

Anyway, point was not to start a "virualenv vs, Docker" debate - just to point out that Docker is useful for readily deploying any kind of tool or service and is being adopted by DevOps teams for that reason.  It may not be useful for  your specific use case; but those working in production its becoming a "must have".
Add a comment...

Chris Parbey

Showroom  - 
 
Live development of Website Ranking Widget with Python/Django
https://www.livecoding.tv/karolyi/
2
Add a comment...

Thiago Porto

Questions  - 
 
Does anyone have a tutorial deploy django digital ocean ? Those who have there can not apply .
1
Retselisitsoe Moabi's profile photo
Add a comment...

John Dean

Questions  - 
 
 
Ok, need help. What is your preferred way of setting up your template directory or directories?

I have read Two Scoops and Tango With Django both have a different way of doing it. My project will have like 15ish apps that will be plug-able for other projects.

Please select 1 or leave a comment about other ways you'd go about it.

Thanks for you help!
62 votes  -  votes visible to Public
project_root/templates
27%
project_root/app/template/
42%
project_root/app/template/app
31%
1
Thomas Krüger's profile photoMax Seifert's profile photo
4 comments
 
+Daniel Quinn I tend to do stuff like
"project_root/app/template/<prefix>_base.html" to avoid name conflicts. Still, I strongly agree with +Thomas Krüger , as he provides really good explanation on usage and semantics.
Add a comment...

About this community

The Web framework for perfectionists with deadlines. www.djangoproject.com
 
I have a website and although the database is very small for now, mainly because I only had text to worry about, with the inclusion of images it can get much bigger, so I would like to setup a server to handle the database. I'm using Digital Ocean, but I think that their plans for database oriented servers haven't reached Europe yet, so what is a cheap and good hosting solution? Also, any tutorials on how to setup the database? I'm sorry if I'am asking a lot, I've never given much thought to the database and I don't much about how to handle it. Thank you.
1
Mattia Procopio's profile photoCode Revolution's profile photo
6 comments
 
I'll have to check that out. I really need to study databases a bit more properly, it's necessary. Static files can be a problem, but maybe I can check when DigitalOcean plans to bring block storage to Europe. Anyway, thanks again!
Add a comment...
 
I'm creating a website that I want to slowly turn into a social network of sorts, and I want to create my own custom comments for each model, since the Django comment framework seems to be deprecated. Any hints for how to do it? For the time being I use Disqus, but I don't like being tied to a different service and anyway, I'm still a learner, there's no point in a taking a ready solution in my opinion... 
1
Robert Węglarek's profile photoCode Revolution's profile photo
2 comments
 
So, basically, this way I can create a ForeignKey (comments, in my case) and use it for different models?
Add a comment...

Ajay Kumar

Questions  - 
 
hi Guys
I tried django-simple-captcha on refering http://django-simple-captcha.readthedocs.io/…/la…/usage.html. Every thing works well and goes fine, I need few suggestion on it.
1. How efficiency is this?
2. How strong is this?
3. How easy/hard to cark this captcha?
4. Can we use this to high end applications?
Guys please suggest me for above line items or any this else there please let me know about django-simple-captcha, please explain me the pros and cons of django-simple-captcha. Thanks in advance.
1
Add a comment...

Bernat Bonet

Questions  - 
 
Has someone how to add dynamic fields to AdminForm that are not part of the model?

I need to add one field to model admin to show/hide fields in change form.

Thanks
3
Derek Hohls's profile photoBernat Bonet's profile photo
2 comments
 
+Derek Hohls Thanks a lot
Add a comment...
 
Has anyone used Angular 2 with django and DRF? i.e using django + DRF to create a restful api and using Angular 2 to create the front end which uses that restful api. What I'm mainly interested in is how to deploy it, will the django app be on a server and the angular 2 app be on another server? Or can both of them be on the same server?

Thanks.
1
1
Emmanuel Akinpelu's profile photoScott White's profile photo
10 comments
 
+Emmanuel Akinpelu Take a look at this. http://owaislone.org/blog/webpack-plus-reactjs-and-django/ It is not specific to Angular, but provides a simple way to handle all JS dependencies and load them thru static files in Django.
Add a comment...

Steve Leon

Questions  - 
 
Introduction - Django Web Development with Python 1
#web #development #python #programming  
8
2
Add a comment...

John Dean

Questions  - 
 
Back again on my Django Quest. My python/django skills are feeling stretched. I am trying to make a models that handles a relation that I've has to hand code for the last year, but I am getting an error.

I have referenced a variable before assignment. Don't know how to fix it while trying to make the database the way i want it.

Any help will be greatly appreciated.

http://pastebin.com/crYDiqPR
2
John Dean's profile photoMattia Procopio's profile photo
4 comments
 
+John Dean please write how you imagine relations between your threee models and we'll find a way of relate them
Add a comment...

Ankur Gupta

Links & Videos  - 
 
Launching Djangoweekly.com - A new Django weekly newsletter ... http://djangoweekly.com/newsletter/ ... Issue One is now out ... Have a look. 
One component of Django framework that I always enjoy using is its Object-relational Mapper. It provides a sane way of representing relational data as Python objects. While it seems less expressive than alternatives, such as SQLAlchemy, it still can express a lot of complicated SQL statements.
9
Ankur Gupta's profile photoJohn Matthew's profile photo
3 comments
 
all signed up, thank you for posting
Add a comment...
 
Bonus lesson 1: Django + DRF + AngularJS

3
2
Emmanuel Akinpelu's profile photo
 
+Chris Bartos​ can you make one for django + drf + angular 2? Which also includes how to deploy it live. Thanks.
Add a comment...
 
I am trying to merge two web sites together. One is django, the other is cgi perl. I want to use django's auth system.

Can I exec the cgi program from inside django and return the output as a page? What about cookies, posted value and doc headers?
2
Jose Galvez's profile photoStuart Holliday's profile photo
6 comments
 
+Jeremy Mordkoff depends exactly what the thing is doing. Googling for authentication microservices shows it is a relatively common problem with several (complex) solutions. It doesn't look like django makes things easy. You may be able to just have the django pass on the request and response, inefficient as this is - I.e. add URL handler, use requests to get the result from Perl, then return the result. 
Add a comment...