What do you think about unify templates feature?

2019-01-17 Thread J . Pablo Martín Cobos
Hi,

>From one year ago, I am using an own command for Django templates that
unify them. With an example it is easy to see. If I am to render for
example a template call news.html like it:

1. news.html

{% extends "base.html" %}

{% block title %}
{% include "inc.news.title.html" %}
{% endblock %}

{% block content %}
{% for news_item in news %}
{{ news_item.title }}
{{ news_item.subtitle }}
{% endfor %}
{% endblock %}

2. base.html

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; lang="{{
LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif
%}>

{% block title %}{% endblock %}


{% block content %}{% endblock %}



3. inc.news.title.html
News

With this command I preproces every template of a settings variable and I
get something like this:

news.unify.html

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml"; lang="{{
LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif
%}>

News


{% for news_item in news %}
{{ news_item.title }}
{{ news_item.subtitle }}
{% endfor %}



So I have a two improves:

   1. It is more fast. And in a real project a view can render easyly 50
   templates
   2. I use news.html to develop and news.unify.html to production. So I
   don't lose legilibility.


What do you think about "unify templates feature"? Do you know if exists a
similar public project in github/gitlab/bitbucket etc?


Best,

-- 
Pablo Martín Cobos
Computer engineer
Python/Django developer
652 53 37 36
goi...@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 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/CALNyWLGNcuK8DTnU9w9fyGFhFfT3dAz7vfj3B%2BnDHWTfneLNFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


User profile

2019-01-17 Thread senthu nithy
I am new Django framework. I want to create a user profile for my app. But 
i start to create the user profile then i direct to create Admin profile 
which is already created in Django. I want to create a user Profile. Can 
you direct me?

-- 
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/b6f306f9-0124-4a73-80e5-3c89e29d2240%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Learning Resources

2019-01-17 Thread kevin goemaere
I learned the basics through this 
course: https://www.udemy.com/python-django-dev-to-deployment/
It's verry wel structured and you make a whole project and see all the 
basics of Django.



Op woensdag 16 januari 2019 14:20:15 UTC+1 schreef cale...@gmail.com:
>
> Hi All,
>
> I'm just starting out with Django and python and wondering if anyone can 
> direct me to some goto learning resources. Beginner to Advanced
>
> Thanks
>

-- 
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/8efde3a4-c898-4634-8453-76e52e7e829b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


When I used Mysql and MongoDB as my database at the same time, there was something wrong with using TestCase.

2019-01-17 Thread Zhipeng Guan
I use MySQL as my default database, and I just used this database in unit 
tests.


But he used all my database connections while executing the 
"connections_support_transactions" function.

This caused all my data in MySQL initialization to be clear.


I modified the code of TestCase to this way.

https://gist.github.com/elfgzp/4b74a4b0860f3cecba17c56979e8e116



*I want to know if this is a bug.*


-- 
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/527bec75-b0cd-4f59-9710-24e80735465a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Lot into existing Django site

2019-01-17 Thread PASCUAL Eric
Hi,


Since you'll need to update the files on the server, you must have a write 
access to it.

Usually, FTP is no more activated on servers, because not secure at all. This 
can be the reason why the access is denied. There should be an ssh access 
available, so that you can connect on the server and also transfer files 
to/from it, via the scp command. But you must know the appropriate credentials 
(i.e. login/password) or have the keys if ever the password based 
authentication has been deactivated in favor of the ssh-keys based mechanism.

Anyway you have to be in touch with people who have installed the server and 
deployed the application on it, since there are the only ones who can provide 
the above mentioned information.


Regards


Eric



From: django-users@googlegroups.com  on behalf 
of TheShoff 
Sent: Tuesday, January 15, 2019 10:03:07 PM
To: Django users
Subject: Lot into existing Django site

I am trying to add reCaptcha to an existing Django website that was created by 
a company we no longer work with. I have server access to the website, but 
cannot figure out how to edit the files or add the reCaptcha form (I tried to 
manually add the code into the HTML and .py files and uploading it on my FTP 
client and was denied access). Do I need to login to the website using Python 
to add the reCaptcha form? If so, can someone tell me how? I am not looking to 
make any other changes at this time.

***Please note I am new to Django and trying to figure out how it works.***

--
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/bc358bef-40b7-41e2-8faf-39cd89b1f339%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/AM0P193MB03082DB4E967653D1D4044F48C830%40AM0P193MB0308.EURP193.PROD.OUTLOOK.COM.
For more options, visit https://groups.google.com/d/optout.


Django Custom user model with socail auth

2019-01-17 Thread mazz ahmed
Hi, Thanks everyone for their time :)
I want to ask about the custom User model and I can also login with social
auth also. If anybody has code please let me know.

-- 
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/CABuXbh8nAF6dz6y-VUu5BYacGiag%2B7V00Hd4k19pxjrqzFnFPg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: User profile

2019-01-17 Thread ANi
Do you mean you want to create your custom user model?
Two ways to do it,
1. create a profile model and use foreign key to the user model that Django 
provided.
2. create a custom user model like this 
https://wsvincent.com/django-custom-user-model-tutorial/


senthu nithy於 2019年1月17日星期四 UTC+8下午8時47分41秒寫道:
>
> I am new Django framework. I want to create a user profile for my app. But 
> i start to create the user profile then i direct to create Admin profile 
> which is already created in Django. I want to create a user Profile. Can 
> you direct me?
>

-- 
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/94a197bc-1440-43cf-9af7-0c31da09cf4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: User profile

2019-01-17 Thread Alex Kimeu
First you need to create a model for the User Profile.

On Thu, 17 Jan 2019, 17:49 ANi  Do you mean you want to create your custom user model?
> Two ways to do it,
> 1. create a profile model and use foreign key to the user model that
> Django provided.
> 2. create a custom user model like this
> https://wsvincent.com/django-custom-user-model-tutorial/
>
>
> senthu nithy於 2019年1月17日星期四 UTC+8下午8時47分41秒寫道:
>>
>> I am new Django framework. I want to create a user profile for my app.
>> But i start to create the user profile then i direct to create Admin
>> profile which is already created in Django. I want to create a user
>> Profile. Can you direct me?
>>
> --
> 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/94a197bc-1440-43cf-9af7-0c31da09cf4b%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/CACYP3VG4PsTMPd7Sj0LGkbqNUdU135K2D9Ven-VXV91vMiJhTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Error while running a project

2019-01-17 Thread Nadhem Zmandar
I am beginner with Django. I've downloaded an open source Django project to 
start learning and I've installed PostGres and PgAdmin and tested them.and 
I have checked all details in the settings.py (especially the password) to 
link the project to the database created on PgAdmin.
However when I run the project I have this error

PS D:\django\btre_project-master> python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).
Unhandled exception in thread started by .wrapper at 0x04394300>
Traceback (most recent call last):
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
 
line 216, in ensure_connection
self.connect()
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
 
line 194, in connect
self.connection = self.get_new_connection(conn_params)
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\postgresql\base.py",
 
line 178, in get_new_connection
connection = Database.connect(**conn_params)
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psycopg2\__init__.py",
 
line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
psycopg2.OperationalError: FATAL:  password authentication failed for user 
"postgres"


The above exception was the direct cause of the following exception:


Traceback (most recent call last):
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py",
 
line 225, in wrapper
fn(*args, **kwargs)
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\commands\runserver.py",
 
line 120, in inner_run
self.check_migrations()
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\base.py",
 
line 442, in check_migrations
executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\executor.py",
 
line 18, in __init__
self.loader = MigrationLoader(self.connection)
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\loader.py",
 
line 49, in __init__
self.build_graph()
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\loader.py",
 
line 212, in build_graph
self.applied_migrations = recorder.applied_migrations()
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\recorder.py",
 
line 61, in applied_migrations
if self.has_table():
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\recorder.py",
 
line 44, in has_table
return self.Migration._meta.db_table in 
self.connection.introspection.table_names(self.connection.cursor())
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
 
line 255, in cursor
return self._cursor()
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
 
line 232, in _cursor
self.ensure_connection()
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
 
line 216, in ensure_connection
self.connect()
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\utils.py",
 
line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
 
line 216, in ensure_connection
self.connect()
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
 
line 194, in connect
self.connection = self.get_new_connection(conn_params)
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\postgresql\base.py",
 
line 178, in get_new_connection
connection = Database.connect(**conn_params)
  File 
"C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psycopg2\__init__.py",
 
line 130, in connect
conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
django.db.utils.OperationalError: FATAL:  password authentication failed 
for user "postgres"





Could any one help me please ? 
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 emai

Django 2.2 alpha 1 released

2019-01-17 Thread Carlton Gibson
We've made the first release on the way to Django's next major 
release, Django 2.2! 

With about two and a half months until the 
final release (scheduled for April 1), we'll need timely testing 
from the community to ensure an on time, stable release. 

Check out the blog post: 

https://www.djangoproject.com/weblog/2019/jan/17/django-22-alpha-1/ 



-- 
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/5C485FB6-0204-4A29-B733-A8ED3C3D5A4B%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error while running a project

2019-01-17 Thread Harryxon Ndegwa
did u install psycopg2 using pip,
that is, pip install psycopg2
i see its a connection error make sure u have psycopg2 connector installed
in your environment

#%£&

On Thu, 17 Jan 2019 6:22 pm Nadhem Zmandar  I am beginner with Django. I've downloaded an open source Django project
> to start learning and I've installed PostGres and PgAdmin and tested
> them.and I have checked all details in the settings.py (especially the
> password) to link the project to the database created on PgAdmin.
> However when I run the project I have this error
>
> PS D:\django\btre_project-master> python manage.py runserver
> Performing system checks...
>
> System check identified no issues (0 silenced).
> Unhandled exception in thread started by  check_errors..wrapper at 0x04394300>
> Traceback (most recent call last):
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 216, in ensure_connection
> self.connect()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 194, in connect
> self.connection = self.get_new_connection(conn_params)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\postgresql\base.py",
> line 178, in get_new_connection
> connection = Database.connect(**conn_params)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psycopg2\__init__.py",
> line 130, in connect
> conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
> psycopg2.OperationalError: FATAL:  password authentication failed for user
> "postgres"
>
>
> The above exception was the direct cause of the following exception:
>
>
> Traceback (most recent call last):
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py",
> line 225, in wrapper
> fn(*args, **kwargs)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\commands\runserver.py",
> line 120, in inner_run
> self.check_migrations()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\base.py",
> line 442, in check_migrations
> executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\executor.py",
> line 18, in __init__
> self.loader = MigrationLoader(self.connection)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\loader.py",
> line 49, in __init__
> self.build_graph()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\loader.py",
> line 212, in build_graph
> self.applied_migrations = recorder.applied_migrations()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\recorder.py",
> line 61, in applied_migrations
> if self.has_table():
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\recorder.py",
> line 44, in has_table
> return self.Migration._meta.db_table in
> self.connection.introspection.table_names(self.connection.cursor())
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 255, in cursor
> return self._cursor()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 232, in _cursor
> self.ensure_connection()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 216, in ensure_connection
> self.connect()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\utils.py",
> line 89, in __exit__
> raise dj_exc_value.with_traceback(traceback) from exc_value
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 216, in ensure_connection
> self.connect()
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
> line 194, in connect
> self.connection = self.get_new_connection(conn_params)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\postgresql\base.py",
> line 178, in get_new_connection
> connection = Database.connect(**conn_params)
>   File
> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psycopg2\__init__.py",
> line 130, in connect
> conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
> django.db.utils.OperationalError: FATAL:  passw

Re: Sale on Packt publishing

2019-01-17 Thread Lehner Viktor
Hello I have bought what you suggested and is above my expectations, i am 
100% percent satisfied wit htis book.

Thanks!

2019. január 8., kedd 18:26:58 UTC+1 időpontban Okware Aldo a következőt 
írta:
>
> Django 2 by example - Antonio Mele and Django design patterns. 
>
> On Tue, 8 Jan 2019, 16:58 Lehner Viktor,  > wrote:
>
>> Which Django book do you recomend to by from PACKT ?
>>
>> -- 
>> 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...@googlegroups.com .
>> To post to this group, send email to django...@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/6e7b54c1-7f24-4c17-866c-21b1eb909ca0%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/4490ce0b-8d57-4e72-a43d-dd684cbe13b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Seeking suggestions on how shall i begin to contribute

2019-01-17 Thread C. Kirby
https://docs.djangoproject.com/en/dev/internals/contributing/

On Wednesday, January 16, 2019 at 1:49:27 PM UTC-5, Harsh Agarwal wrote:
>
> hello , I am new here and i also want to contribute to this project . Can 
> anyone please help me on how should i begin to contribute?
>

-- 
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/4056fb5c-8ee2-4b9c-b3aa-3c4d3d1e690f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Preparing for 2.2LTS - testing for Deprecation Warnings

2019-01-17 Thread Dan Davis
PYTHONWARNINGS=error is too much.

How can I call warnings.filterwarnings() to make all *Django* 
DeprecationWarnings into errors?

-- 
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/8b01f54a-ebf1-4082-b205-b83491d9bab7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 2.2 alpha 1 released

2019-01-17 Thread Dan Davis
Great - I want to add it to some tox tests that I only run on demand.   It 
isn't yet on pypi, right?

On Thursday, January 17, 2019 at 10:40:21 AM UTC-5, Carlton Gibson wrote:
>
> We've made the first release on the way to Django's next major 
> release, Django 2.2! 
>
> With about two and a half months until the 
> final release (scheduled for April 1), we'll need timely testing 
> from the community to ensure an on time, stable release. 
>
> Check out the blog post: 
>
> https://www.djangoproject.com/weblog/2019/jan/17/django-22-alpha-1/
>
>
>

-- 
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/83b595a3-2e65-464c-8e06-2ce61d0d2535%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django 2.2 alpha 1 released

2019-01-17 Thread Dan Davis
Now I see it...

On Thursday, January 17, 2019 at 11:31:24 AM UTC-5, Dan Davis wrote:
>
> Great - I want to add it to some tox tests that I only run on demand.   It 
> isn't yet on pypi, right?
>
> On Thursday, January 17, 2019 at 10:40:21 AM UTC-5, Carlton Gibson wrote:
>>
>> We've made the first release on the way to Django's next major 
>> release, Django 2.2! 
>>
>> With about two and a half months until the 
>> final release (scheduled for April 1), we'll need timely testing 
>> from the community to ensure an on time, stable release. 
>>
>> Check out the blog post: 
>>
>> https://www.djangoproject.com/weblog/2019/jan/17/django-22-alpha-1/
>>
>>
>>

-- 
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/1b855de7-eaea-4222-afc7-a6610aeb267a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Django website - Online responsive check

2019-01-17 Thread zakar . ulrichpro
Hello everyone, 
I used django framework for developing a web application.
Now, I'd like to adjust the application to every devices' monitor (desktop, 
tablet, mobile).
I'm used to using http://responsivedesignchecker.com/ to check website 
responsive. But while I test my django website through this responsive 
checker, it display nothing.
I already changed allowed_host value to accept any hosts but same problem 
(nothing displayed).
So, I don't know what should I do.
Everyone can help me?

Thanks
 

-- 
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/7897782f-2849-45d9-84cb-8899d8a92a65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Preparing for 2.2LTS - testing for Deprecation Warnings

2019-01-17 Thread Simon Charette
You can use the category kwarg of filterwarnings[0] to pass the Django 
deprecation
warning classes.

They can be found in the django.utils.deprecation module. (e.g. 
RemovedInDjango30Warning).

Cheers,
Simon

[0] 
https://docs.python.org/3/library/warnings.html?highlight=filterwarnings#warnings.filterwarnings

-- 
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/520cea1a-7df7-4060-a8b0-3d361473e7a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-17 Thread Django Geek Aditya
Shell Output after entering command is
PS E:\todo> . \Scripts\activate
. : The term '\Scripts\activate' is not recognized as the name of a cmdlet, 
function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify 
that the path is correct and try again.
At line:1 char:3
+ . \Scripts\activate
+   ~
+ CategoryInfo  : ObjectNotFound: (\Scripts\activate:String) 
[], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS E:\todo>

-- 
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/00a2f79a-0d62-4fd8-8cd4-cd5b9e8d1f2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-17 Thread Danylo K.
try .\scripts\activate.bat


On Thu, Jan 17, 2019 at 2:18 PM Django Geek Aditya 
wrote:

> Shell Output after entering command is
> PS E:\todo> . \Scripts\activate
> . : The term '\Scripts\activate' is not recognized as the name of a
> cmdlet, function, script file, or operable
> program. Check the spelling of the name, or if a path was included, verify
> that the path is correct and try again.
> At line:1 char:3
> + . \Scripts\activate
> +   ~
> + CategoryInfo  : ObjectNotFound: (\Scripts\activate:String)
> [], CommandNotFoundException
> + FullyQualifiedErrorId : CommandNotFoundException
>
> PS E:\todo>
>
> --
> 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/00a2f79a-0d62-4fd8-8cd4-cd5b9e8d1f2b%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/CADnU5JEQuC__qBQ5K0MBF8Hx-AF9aNhPTyxjh9GELsAs_Nmt3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-17 Thread Jorge Gimeno
I assume that's in Windows Powershell. I think it's .\Scripts\activate.bat

I would also check to ensure that the Scripts folder exists in your current
directory.

-Jorge

On Thu, Jan 17, 2019 at 11:18 AM Django Geek Aditya 
wrote:

> Shell Output after entering command is
> PS E:\todo> . \Scripts\activate
> . : The term '\Scripts\activate' is not recognized as the name of a
> cmdlet, function, script file, or operable
> program. Check the spelling of the name, or if a path was included, verify
> that the path is correct and try again.
> At line:1 char:3
> + . \Scripts\activate
> +   ~
> + CategoryInfo  : ObjectNotFound: (\Scripts\activate:String)
> [], CommandNotFoundException
> + FullyQualifiedErrorId : CommandNotFoundException
>
> PS E:\todo>
>
> --
> 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/00a2f79a-0d62-4fd8-8cd4-cd5b9e8d1f2b%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/CANfN%3DK-vGrj8Q3NxpUoJEv8ebynbsu7N6wVjAwUSTu-JvvyZ%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-17 Thread Lutalo Bbosa joseph
if linux, then activating the env is source/bin/activate
after changing to that directory

On Thu, Jan 17, 2019 at 10:22 PM Jorge Gimeno  wrote:

> I assume that's in Windows Powershell. I think it's .\Scripts\activate.bat
>
> I would also check to ensure that the Scripts folder exists in your
> current directory.
>
> -Jorge
>
> On Thu, Jan 17, 2019 at 11:18 AM Django Geek Aditya <
> djangoadi...@gmail.com> wrote:
>
>> Shell Output after entering command is
>> PS E:\todo> . \Scripts\activate
>> . : The term '\Scripts\activate' is not recognized as the name of a
>> cmdlet, function, script file, or operable
>> program. Check the spelling of the name, or if a path was included,
>> verify that the path is correct and try again.
>> At line:1 char:3
>> + . \Scripts\activate
>> +   ~
>> + CategoryInfo  : ObjectNotFound: (\Scripts\activate:String)
>> [], CommandNotFoundException
>> + FullyQualifiedErrorId : CommandNotFoundException
>>
>> PS E:\todo>
>>
>> --
>> 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/00a2f79a-0d62-4fd8-8cd4-cd5b9e8d1f2b%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/CANfN%3DK-vGrj8Q3NxpUoJEv8ebynbsu7N6wVjAwUSTu-JvvyZ%2BA%40mail.gmail.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/CAMz%3Dh%3DTBxqift203D0Tp9meetvbX57DYav%3Dh776kAXOSgsoMOg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Installed Python 3.7; installed Django 2.1.5. Django folder open, now what?

2019-01-17 Thread LinkSnakeGeralt
Good point you brought up.

I had a look and realised that although I installed python3, I also have 
python2 since my terminal acknowledges a python2. I had to input in the 
terminal if python3 was installed and it confirmed it too.

Am I missing something here?

Do I need to delete one python (obviously the older version) in order so 
django/terminal/laptop/software ONLY recognises python3.

Also, it IS unusual since I recall first time ever downloading python (2 
months ago) I recall clicking ONLY on the python3, not python2.

Many thanks

-- 
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/5a8d904a-6733-48e3-950e-ffaaca60ed9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error while running a project

2019-01-17 Thread Nadhem Zmandar
I've installed psycopg2 before running he server. So I think it's an other
problem

Le jeu. 17 janv. 2019 à 16:50, Harryxon Ndegwa 
a écrit :

> did u install psycopg2 using pip,
> that is, pip install psycopg2
> i see its a connection error make sure u have psycopg2 connector installed
> in your environment
>
> #%£&
>
> On Thu, 17 Jan 2019 6:22 pm Nadhem Zmandar  wrote:
>
>> I am beginner with Django. I've downloaded an open source Django project
>> to start learning and I've installed PostGres and PgAdmin and tested
>> them.and I have checked all details in the settings.py (especially the
>> password) to link the project to the database created on PgAdmin.
>> However when I run the project I have this error
>>
>> PS D:\django\btre_project-master> python manage.py runserver
>> Performing system checks...
>>
>> System check identified no issues (0 silenced).
>> Unhandled exception in thread started by > check_errors..wrapper at 0x04394300>
>> Traceback (most recent call last):
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
>> line 216, in ensure_connection
>> self.connect()
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
>> line 194, in connect
>> self.connection = self.get_new_connection(conn_params)
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\postgresql\base.py",
>> line 178, in get_new_connection
>> connection = Database.connect(**conn_params)
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\psycopg2\__init__.py",
>> line 130, in connect
>> conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
>> psycopg2.OperationalError: FATAL:  password authentication failed for
>> user "postgres"
>>
>>
>> The above exception was the direct cause of the following exception:
>>
>>
>> Traceback (most recent call last):
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\utils\autoreload.py",
>> line 225, in wrapper
>> fn(*args, **kwargs)
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\commands\runserver.py",
>> line 120, in inner_run
>> self.check_migrations()
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\core\management\base.py",
>> line 442, in check_migrations
>> executor = MigrationExecutor(connections[DEFAULT_DB_ALIAS])
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\executor.py",
>> line 18, in __init__
>> self.loader = MigrationLoader(self.connection)
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\loader.py",
>> line 49, in __init__
>> self.build_graph()
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\loader.py",
>> line 212, in build_graph
>> self.applied_migrations = recorder.applied_migrations()
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\recorder.py",
>> line 61, in applied_migrations
>> if self.has_table():
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\migrations\recorder.py",
>> line 44, in has_table
>> return self.Migration._meta.db_table in
>> self.connection.introspection.table_names(self.connection.cursor())
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
>> line 255, in cursor
>> return self._cursor()
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
>> line 232, in _cursor
>> self.ensure_connection()
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
>> line 216, in ensure_connection
>> self.connect()
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\utils.py",
>> line 89, in __exit__
>> raise dj_exc_value.with_traceback(traceback) from exc_value
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
>> line 216, in ensure_connection
>> self.connect()
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\base\base.py",
>> line 194, in connect
>> self.connection = self.get_new_connection(conn_params)
>>   File
>> "C:\Users\nadhem\AppData\Local\Programs\Python\Python37-32\lib\site-packages\django\db\backends\postgresql\base.py",
>> line 178, in get_new_connection
>> connection = Database.connect(**conn_pa

Re: Installed Python 3.7; installed Django 2.1.5. Django folder open, now what?

2019-01-17 Thread LinkSnakeGeralt
Right so update, thank you btw

I managed to change it so python3 is default by using 'alias'? and echo 
PATH(?) to save it.

With all that said and done, I was ready to start django (having confirmed 
both python and django are update and compatible with each others' 
versions).

I went on django's 
site: https://docs.djangoproject.com/en/2.1/intro/tutorial01/

I got to this bit:


The development server¶ 


Let’s verify your Django project works. Change into the outer mysite directory, 
if you haven’t already, and run the following commands:

$ python manage.py runserver



I entered this on my Terminal (Mac). But it came out with an error. As a 
beginner, I'm aware I'm missing something very obvious but cannot figure 
out, with the youtube and information around where.

What am I missing here and where should I enter that above command?




-- 
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/f4238c55-8298-4f14-8fe2-45b4027f9c62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Preparing for 2.2LTS - testing for Deprecation Warnings

2019-01-17 Thread Dan Davis
I will then try like this in my manage.py:

 if len(sys.argv)>1 and sys.argv[1] = 'test':
  warnings.filterwarnings(...)

Thanks,

-Dan

On Thu, Jan 17, 2019 at 1:08 PM Simon Charette  wrote:

> You can use the category kwarg of filterwarnings[0] to pass the Django
> deprecation
> warning classes.
>
> They can be found in the django.utils.deprecation module. (e.g.
> RemovedInDjango30Warning).
>
> Cheers,
> Simon
>
> [0]
> https://docs.python.org/3/library/warnings.html?highlight=filterwarnings#warnings.filterwarnings
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/Urrwf66qv6A/unsubscribe.
> To unsubscribe from this group and all its topics, 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/520cea1a-7df7-4060-a8b0-3d361473e7a5%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/CAFzonYaiD7Q0Y%3DppAqw6K22VsFPve%2BuL0Sb%3DOKaYHfR7Vnw58A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-17 Thread shiva kumar
Can you tell which os ur using.

On Fri 18 Jan, 2019 12:48 am Django Geek Aditya  Shell Output after entering command is
> PS E:\todo> . \Scripts\activate
> . : The term '\Scripts\activate' is not recognized as the name of a
> cmdlet, function, script file, or operable
> program. Check the spelling of the name, or if a path was included, verify
> that the path is correct and try again.
> At line:1 char:3
> + . \Scripts\activate
> +   ~
> + CategoryInfo  : ObjectNotFound: (\Scripts\activate:String)
> [], CommandNotFoundException
> + FullyQualifiedErrorId : CommandNotFoundException
>
> PS E:\todo>
>
> --
> 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/00a2f79a-0d62-4fd8-8cd4-cd5b9e8d1f2b%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/CAMsYeuHMGXx9rteELakC6zyqWGR9tGGMQPQ4m5sN0bEbJaqD%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: User profile

2019-01-17 Thread senthu nithy
Thank you ANi and Alex. I will refer both links
K.Senthuja
Undergraduate Student (UOJ),
https://www.linkedin.com/in/senthuja/
https://medium.com/@senthujakarunanithy


On Thu, Jan 17, 2019 at 8:41 PM Alex Kimeu  wrote:

> First you need to create a model for the User Profile.
>
> On Thu, 17 Jan 2019, 17:49 ANi 
>> Do you mean you want to create your custom user model?
>> Two ways to do it,
>> 1. create a profile model and use foreign key to the user model that
>> Django provided.
>> 2. create a custom user model like this
>> https://wsvincent.com/django-custom-user-model-tutorial/
>>
>>
>> senthu nithy於 2019年1月17日星期四 UTC+8下午8時47分41秒寫道:
>>>
>>> I am new Django framework. I want to create a user profile for my app.
>>> But i start to create the user profile then i direct to create Admin
>>> profile which is already created in Django. I want to create a user
>>> Profile. Can you direct me?
>>>
>> --
>> 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/94a197bc-1440-43cf-9af7-0c31da09cf4b%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/CACYP3VG4PsTMPd7Sj0LGkbqNUdU135K2D9Ven-VXV91vMiJhTw%40mail.gmail.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/CALEaTU6EfXskkuD%3Dfn3_on83kx0V%3D1qXaeQ7sQk9kVYheibJ4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-17 Thread SATYA PRAKASH BHARTI
Use this command this worked for me. Set-ExecutionPolicy 
Unrestricted

On Friday, January 18, 2019 at 12:48:35 AM UTC+5:30, Django Geek Aditya 
wrote:
>
> Shell Output after entering command is
> PS E:\todo> . \Scripts\activate
> . : The term '\Scripts\activate' is not recognized as the name of a 
> cmdlet, function, script file, or operable
> program. Check the spelling of the name, or if a path was included, verify 
> that the path is correct and try again.
> At line:1 char:3
> + . \Scripts\activate
> +   ~
> + CategoryInfo  : ObjectNotFound: (\Scripts\activate:String) 
> [], CommandNotFoundException
> + FullyQualifiedErrorId : CommandNotFoundException
>
> PS E:\todo>
>
>

-- 
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/14c33b8d-47be-4049-806c-97174245b905%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-17 Thread Phước Thịnh Nguyễn
In Windows, you can active by 'cmd' :D

Vào 02:18:35 UTC+7 Thứ Sáu, ngày 18 tháng 1 năm 2019, Django Geek Aditya đã 
viết:
>
> Shell Output after entering command is
> PS E:\todo> . \Scripts\activate
> . : The term '\Scripts\activate' is not recognized as the name of a 
> cmdlet, function, script file, or operable
> program. Check the spelling of the name, or if a path was included, verify 
> that the path is correct and try again.
> At line:1 char:3
> + . \Scripts\activate
> +   ~
> + CategoryInfo  : ObjectNotFound: (\Scripts\activate:String) 
> [], CommandNotFoundException
> + FullyQualifiedErrorId : CommandNotFoundException
>
> PS E:\todo>
>
>

-- 
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/22a0f418-dce2-41a7-90c7-7774e4827854%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.