submit button redirecting to unknown url

2019-01-20 Thread Mohammad Etemaddar
Change action="." To action=""

-- 
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/5c630883-7bd3-4b65-a9c9-5429375cca94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Best Learning Resources

2019-01-20 Thread Mohammad Etemaddar
I liked "django by example"

-- 
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/f5c1156f-ac06-49f2-a383-f5dfe354c592%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Learning Resources

2019-01-20 Thread Nigel Copley
Thanks I've done that too, it's very good

I've also found that the treehouse courses are very good

On Sun, 20 Jan 2019, 08:01 Mohammad Etemaddar, 
wrote:

> I liked "django by example"
>
> --
> 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/f5c1156f-ac06-49f2-a383-f5dfe354c592%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/CAFtSCBjY39bMzAZXaEtQhUmurDFFzsOEfZYK%2Bf4KjKwUQXcy2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Best Learning Resources

2019-01-20 Thread Tomas Adel
I liked begining django _ web application development

On Sun, Jan 20, 2019, 2:12 PM Nigel Copley  Thanks I've done that too, it's very good
>
> I've also found that the treehouse courses are very good
>
> On Sun, 20 Jan 2019, 08:01 Mohammad Etemaddar, <
> mohammad.etemad...@gmail.com> wrote:
>
>> I liked "django by example"
>>
>> --
>> 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/f5c1156f-ac06-49f2-a383-f5dfe354c592%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/CAFtSCBjY39bMzAZXaEtQhUmurDFFzsOEfZYK%2Bf4KjKwUQXcy2w%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/CAMgugmWokF4Db7D5-c6%3DB5pT7eQze_pjbKObYpw69ajP6UwNKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


django creadted day

2019-01-20 Thread tercuman4848
hi guys ım beginer ı starrt learn to django ,
my questin  in my model have created day input when save my model its not 
have any porblem .
my problem  on tempaltes coming fist created date time ı wanna write last 
created dat first place ,
how can ı make  

thx

-- 
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/bb0da62f-40e7-49ff-b7bf-b454be08dc86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


E-commerce with Django framework

2019-01-20 Thread kibirige Gerald Joseph
Hello!

I started learning Django framework last month. Django is great!
Well,  is  it plausible to build an e-commerce website with Django?

If so, what resources and information do I need to make an e-commerce
website in Django a reality?

Thank you

Gerald

-- 
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/CANNqTcNqGJh5JBjGpYyFv6NBJrbG3Dttm-99Qd2B7P1FGKqqiw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: E-commerce with Django framework

2019-01-20 Thread Jani Tiainen
Well there exists few frameworks on top of django that does. For example
django-oscar. You can find more at
https://djangopackages.org/grids/g/ecommerce/.


On Sun, Jan 20, 2019 at 4:19 PM kibirige Gerald Joseph <
geraldjose...@gmail.com> wrote:

> Hello!
>
> I started learning Django framework last month. Django is great!
> Well,  is  it plausible to build an e-commerce website with Django?
>
> If so, what resources and information do I need to make an e-commerce
> website in Django a reality?
>
> Thank you
>
> Gerald
>
> --
> 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/CANNqTcNqGJh5JBjGpYyFv6NBJrbG3Dttm-99Qd2B7P1FGKqqiw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
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/CAHn91odcraGP25iNJfjJJVQ8NJj9P5HJE%3DVmu-Qz1zNKbORY4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Login with email or phone not username

2019-01-20 Thread Achyut Pandey
@

> On Sun, 6 Jan 2019 at 23:40, kaushik kumar roy  
> wrote:
> Hi,
> i think you can add a if condition in your view.py , stating if the username 
> matches to a regular expression for mobile or email.
> if the regular expression matches the email you can go ahead calling the user 
> authenticate method and pass the email. But if the regular expression matches 
> for mobile than try to write another function to query using mobile number. 
> You need to have a mobile number field in your model. 
> I am not sure how we can query the user model with another field and password 
> to authenticate a user. Anyways if you find something better do update us in 
> this thread.
> 
> thanks and regards
> Kaushik Kr Roy
>  
> 
>> On Sun, 6 Jan 2019 at 07:39, Achyut Pandey  
>> wrote:
>>This message is eligible for Automatic Cleanup! 
>> (anjan.sarathi...@gmail.com) Add cleanup rule | More info 
>> 
>> Hello guys i want to allow user to register and login with their email or 
>> phone number instead of username . How can i do that i am extending user 
>> model with abstractuser.
>> 
>> -- 
>> 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/A50B7F88-AAE8-4A9C-AEF9-A27649F3D643%40gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> --
> Kauhsik Kr Roy
> -- 
> 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/CAOAwuoJ4SLiQ9yuFvAV-U7D6X2jpr09Hc4h-pmGLOJm_f8Vw%2Bg%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/DDF464FB-F1E8-493B-BFCD-E3740BA0EC5F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project initialization

2019-01-20 Thread Lara Garg
Yes, it's properly installed and currently i am using Debian

On Sunday, January 20, 2019 at 4:36:52 AM UTC+5:30, Lara Garg wrote:
>
> Why write django-admin startproject xyz and not just django startproject 
> xyz?
> Thanks in advance
>
>

-- 
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/e773e0b0-8946-45c3-a7a9-5b6565c22210%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project initialization

2019-01-20 Thread Jani Tiainen
Hi,

If you were wondering why django-admin and not django. Explanation is
rather simple. When Django python package is built "django-admin" is
designated as a script that will be executed. Django within python
namespace is just name of the package.

So that's why django-admin is used to bootstrap your project. Note that it
is not necessary to do that, it's just for convenience.

You could just manually create files and it would work just fine. There
also exists templates for cookie-cutter tool that can build similar
structuers.


On Sun, Jan 20, 2019 at 4:31 PM Lara Garg  wrote:

> Yes, it's properly installed and currently i am using Debian
>
> On Sunday, January 20, 2019 at 4:36:52 AM UTC+5:30, Lara Garg wrote:
>>
>> Why write django-admin startproject xyz and not just django startproject
>> xyz?
>> Thanks in advance
>>
>> --
> 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/e773e0b0-8946-45c3-a7a9-5b6565c22210%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

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


Is it easy to switch User model from inheriting AbstractUser to AbstractBaseUser if already in production?

2019-01-20 Thread Tyler Lynch
Just wondering how difficult that switch is? 

I know, for example, that it's best practice to atleast set AUTH_USER_MODEL 
to a custom user model that inherits from AbstractUser, because switching 
this setting afterwards is difficult, because of updating all the foreign 
keys, etc.

But if that is already implemented, how difficult is it to switch the user 
model from inheriting AbstractUser to AbstractBaseUser? 

Is it simply a matter of bringing in the similar fields, methods as the 
normal django user, inheriting PermissionsMixin as well and likewise with 
the UserManager? 

Or does it also involve having to manually update foreign keys or otherwise 
do some diving in the database?

Just wondering, because if it is that easy, then it's no problem to just 
inherit from AbstractUser now but I can switch to AbstractBaseUser if my 
project needs change. Otherwise, I'll just start with AbstractBaseUser, 
which doesn't seem all that bad to extend actually. I guess the danger is 
that, when upgrading to new django versions, have to be careful to manually 
reintroduce any new patches to the user code? 

Thanks and sorry if the question is a bit rambling. 

-- 
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/bbeb9c57-9797-4652-840a-1f81ebb56726%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project initialization

2019-01-20 Thread Nigel Copley
On this topic I've been wondering why some people use python manage.py
startapp instead of django-admin startapp, is there any difference?

On Sun, 20 Jan 2019, 15:03 Jani Tiainen,  wrote:

> Hi,
>
> If you were wondering why django-admin and not django. Explanation is
> rather simple. When Django python package is built "django-admin" is
> designated as a script that will be executed. Django within python
> namespace is just name of the package.
>
> So that's why django-admin is used to bootstrap your project. Note that it
> is not necessary to do that, it's just for convenience.
>
> You could just manually create files and it would work just fine. There
> also exists templates for cookie-cutter tool that can build similar
> structuers.
>
>
> On Sun, Jan 20, 2019 at 4:31 PM Lara Garg  wrote:
>
>> Yes, it's properly installed and currently i am using Debian
>>
>> On Sunday, January 20, 2019 at 4:36:52 AM UTC+5:30, Lara Garg wrote:
>>>
>>> Why write django-admin startproject xyz and not just django startproject
>>> xyz?
>>> Thanks in advance
>>>
>>> --
>> 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/e773e0b0-8946-45c3-a7a9-5b6565c22210%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
> Jani Tiainen
>
> - Well planned is half done, and a half done has been sufficient before...
>
> --
> 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/CAHn91ofXgbMvsEGMfRhJMy8sNZVp6yCGLUygPBKPonN65djYtA%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/CAFtSCBg3CnzHkS1hG7G_vvh%2BayDjLHnbCRxL_Nf3Y%3DTWbDTbwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project initialization

2019-01-20 Thread Lara Garg
Most of the terminology that you have used is complete alien to me rn, but 
I hope to get there soon and will be able to understand then.
Thanks

On Sunday, January 20, 2019 at 8:33:14 PM UTC+5:30, Jani Tiainen wrote:
>
> Hi,
>
> If you were wondering why django-admin and not django. Explanation is 
> rather simple. When Django python package is built "django-admin" is 
> designated as a script that will be executed. Django within python 
> namespace is just name of the package.
>
> So that's why django-admin is used to bootstrap your project. Note that it 
> is not necessary to do that, it's just for convenience.
>
> You could just manually create files and it would work just fine. There 
> also exists templates for cookie-cutter tool that can build similar 
> structuers.
>
>
> On Sun, Jan 20, 2019 at 4:31 PM Lara Garg  > wrote:
>
>> Yes, it's properly installed and currently i am using Debian
>>
>> On Sunday, January 20, 2019 at 4:36:52 AM UTC+5:30, Lara Garg wrote:
>>>
>>> Why write django-admin startproject xyz and not just django startproject 
>>> xyz?
>>> Thanks in advance
>>>
>>> -- 
>> 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/e773e0b0-8946-45c3-a7a9-5b6565c22210%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> -- 
> Jani Tiainen
>
> - Well planned is half done, and a half done has been sufficient before...
>

-- 
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/92c18275-2345-440b-8161-cea0f79790f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Project initialization

2019-01-20 Thread Jason
Might be beneficial to review this documentation  
https://docs.djangoproject.com/en/2.1/ref/django-admin/

It does a good job of specifying the differences.

Myself, using OSX and/or docker for all my projects, I only use 
django-admin to start a project, and use manage.py for everything else.

-- 
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/fa2a121a-b2d8-45b5-86f4-c921e290f3d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.