Re: Login Not working

2020-04-08 Thread waqar khan
Thank You Very Much


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Apr 7, 2020 at 5:50 PM shengdao zhou <2692...@sina.com> wrote:

> In *onevideos.zip\onevideos\userproject\home\views.py 17:28*, if the
> login is successful, *login.html *will still be returned, which should be
> replaced with *index.html*.
>
> [image: views.py 17.png]
>
>
> 在 2020年4月6日星期一 UTC+8下午9:35:33,kkwaqar786写道:
>>
>> Loggin not working ,
>>
>> Please Help Me,
>>
>> Admin:
>>
>> username:-admin
>> password:-admin
>>
>> User:
>>
>> username:-waqar
>> password:-Test@123
>>
>>
>>
>> Please Solved my Problems ,Django groups
>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/aefcd717-2619-4f21-9357-70d7fb3b7d97%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJO58e5X0sx0iEic1uP_ZUF9S-xLCaD_y6w_BtXG%3DGFe1QcKTw%40mail.gmail.com.


Re: Can upload a directory structure as file upload using django?

2020-04-08 Thread Andréas Kühne
Hi,

You can't do that with a django form field - you need to handle that in
some other way.

What I would do is zip the directory and upload the zip file. Python can
handle zip files without any problem - so it shouldn't be that hard.

Regards,

Andréas


Den tis 7 apr. 2020 kl 14:20 skrev Ashok Sharma <
ashok.connectglo...@gmail.com>:

> Hi All,
>
> I want to upload a directory structure from remote server same as we are
> uploading any file or image.
>
> Please have a look and share me any reference.
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/fb4f630c-099c-4fc7-994b-b6f7dabfd58c%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCfgqbX6Jy3qgPakHgfnL3Y6h2hKMiK8Y9wv1i%2BJ8MY7mw%40mail.gmail.com.


Re: help with my signup API

2020-04-08 Thread John McClain
did you make migrations, it seems like it is not finding the
account/register

On Wed, 8 Apr 2020 at 09:38, ola neat  wrote:

> Good day guys
> i'm working on an app, i created an api for user signup to be consumed by
> an angular app, but now the issues i'm having is that when they user signup
> after filling the form i'm getting an  err, see attached my err and codes
>
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHLKn71N-V%3Dhg8WpsOdxc-9eMJjEX2BoRdHTo8q1N0H8o84r5w%40mail.gmail.com
> 
> .
>


-- 
John McClain

Cell: 085-1977-823
Skype: jmcclain0129
Email: jmcclain0...@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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAN-hv_o%2BCZ45jKvdSW3Hr18L3SxZ8NMjkai9Mtn%2B5jYC2RjYQg%40mail.gmail.com.


Re: help with my signup API

2020-04-08 Thread ola neat
yes i did, i tested it with post man and i'm getting same erro

On Wed, Apr 8, 2020 at 2:23 PM John McClain  wrote:

> did you make migrations, it seems like it is not finding the
> account/register
>
> On Wed, 8 Apr 2020 at 09:38, ola neat  wrote:
>
>> Good day guys
>> i'm working on an app, i created an api for user signup to be consumed by
>> an angular app, but now the issues i'm having is that when they user signup
>> after filling the form i'm getting an  err, see attached my err and codes
>>
>>
>> --
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAHLKn71N-V%3Dhg8WpsOdxc-9eMJjEX2BoRdHTo8q1N0H8o84r5w%40mail.gmail.com
>> 
>> .
>>
>
>
> --
> John McClain
>
> Cell: 085-1977-823
> Skype: jmcclain0129
> Email: jmcclain0...@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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAN-hv_o%2BCZ45jKvdSW3Hr18L3SxZ8NMjkai9Mtn%2B5jYC2RjYQg%40mail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHLKn73D%2Bx%2BYtMRoTONEgd0x4XK8TF%2BG9jumwg2m%2BfrMseNvvw%40mail.gmail.com.


Re: help with my signup API

2020-04-08 Thread Motaz Hejaze
Please check that the request body sent from Angular is correct ..

For better debugging ...


In registration view , try to print() the serializer object and the
serializer.data dictionary ..

On Wed, 8 Apr 2020, 3:36 pm ola neat,  wrote:

> yes i did, i tested it with post man and i'm getting same erro
>
> On Wed, Apr 8, 2020 at 2:23 PM John McClain 
> wrote:
>
>> did you make migrations, it seems like it is not finding the
>> account/register
>>
>> On Wed, 8 Apr 2020 at 09:38, ola neat  wrote:
>>
>>> Good day guys
>>> i'm working on an app, i created an api for user signup to be consumed
>>> by an angular app, but now the issues i'm having is that when they user
>>> signup after filling the form i'm getting an  err, see attached my err and
>>> codes
>>>
>>>
>>> --
>>> 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 view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/CAHLKn71N-V%3Dhg8WpsOdxc-9eMJjEX2BoRdHTo8q1N0H8o84r5w%40mail.gmail.com
>>> 
>>> .
>>>
>>
>>
>> --
>> John McClain
>>
>> Cell: 085-1977-823
>> Skype: jmcclain0129
>> Email: jmcclain0...@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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/CAN-hv_o%2BCZ45jKvdSW3Hr18L3SxZ8NMjkai9Mtn%2B5jYC2RjYQg%40mail.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHLKn73D%2Bx%2BYtMRoTONEgd0x4XK8TF%2BG9jumwg2m%2BfrMseNvvw%40mail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHV4E-c%2B3Daeo3bZPisukLrj8prF4S2GujNu9wreST%2BvzFP3-Q%40mail.gmail.com.


Help with i18n language translation in template - strange behavior between Django 2.2.12 and 3.0+

2020-04-08 Thread Александър Попов
Hello guys, 
I hope you are doing well :)

I have the following problem in my project:
I have a simple PasswordChangeForm, which I want to translate in German for 
example... Everything is fine and works correctly in Django 2.2.12:
See: 1.png
If I upgrade my Django to v 3.0+ same labels are partially translated! And 
this behavior is only for some languages: de,ru,bg.
For example in 'fr' everything is fine and all labels and error messages 
are translated.
See: 2.png and 3.png

The code that I use is same. Only Django version is different.

My code in templates/passsword.html:
 
{% csrf_token %}

Password change
{% load i18n %}
{% language 'de' %}
{{ p_form|crispy }}
{% endlanguage %}


Save

 


Have you faced with issue liked this? Do you have any idea, what is wrong?

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d05bc41b-2657-49ee-859a-b988232ed350%40googlegroups.com.


Integrate a third pary app in Django and Gunicorn

2020-04-08 Thread 'MH' via Django users
Hi everyone

I created two first, very small apps with Django and serve them on my NAS 
with gunicorn and nginx as reverse proxy. That took me quite a while as I 
am not an experienced coder or administrator. Now I successfully installed 
Mayan EDMS which uses its own Python instance in an venv and uses its own 
gunicorn. Well, that works, but I do not know if it is so clever or 
recommendable to have to multiple Django and gunicorn instances running on 
the same machine.

What do you think about that?

And is it possible to integrate a big app like Mayan EDMS in my existing 
small Django/gunicorn environment? I always thought that Django could 
easily take over one or another app just by copying the corresponding 
folder and registering the app in the settings.py.

Best regards
MH

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dc4b6325-c2ec-4bd7-b55f-a4d13696c92b%40googlegroups.com.


Request to be added to the Django organisation on GitHub

2020-04-08 Thread Nwaobi Daniel
Hi! Goodday,

I would love to be part of the django organisation on GitHub, if it's 
possible though. My username is CrazyChickenDev on github and i would 
really appreciate it if my request is considered.

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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a40e98a6-d60a-4760-b103-e8a469cbe6ee%40googlegroups.com.


Re: Request to be added to the Django organisation on GitHub

2020-04-08 Thread Dylan Reinhold
If you are looking to contribute to django please see :
https://docs.djangoproject.com/en/dev/internals/contributing/

If you just want to use it and code with it, see
https://www.djangoproject.com/start/

Regards,
Dylan

On Wed, Apr 8, 2020 at 9:08 AM Nwaobi Daniel  wrote:

> Hi! Goodday,
>
> I would love to be part of the django organisation on GitHub, if it's
> possible though. My username is CrazyChickenDev on github and i would
> really appreciate it if my request is considered.
>
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a40e98a6-d60a-4760-b103-e8a469cbe6ee%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHtg44DdESYcjowhSgnVaFPjLCCzUqcyYDxZ_RetDg%2BK%3D%3D7T6g%40mail.gmail.com.


Re: Request to be added to the Django organisation on GitHub

2020-04-08 Thread Nwaobi Daniel
Thanks

On Wed, Apr 8, 2020, 5:36 PM Dylan Reinhold  wrote:

> If you are looking to contribute to django please see :
> https://docs.djangoproject.com/en/dev/internals/contributing/
>
> If you just want to use it and code with it, see
> https://www.djangoproject.com/start/
>
> Regards,
> Dylan
>
> On Wed, Apr 8, 2020 at 9:08 AM Nwaobi Daniel 
> wrote:
>
>> Hi! Goodday,
>>
>> I would love to be part of the django organisation on GitHub, if it's
>> possible though. My username is CrazyChickenDev on github and i would
>> really appreciate it if my request is considered.
>>
>> 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 view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/a40e98a6-d60a-4760-b103-e8a469cbe6ee%40googlegroups.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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAHtg44DdESYcjowhSgnVaFPjLCCzUqcyYDxZ_RetDg%2BK%3D%3D7T6g%40mail.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANMiDf9icOWGoAGNue5Cw562vD%2Bj%2Bz0twqufOrtR2aW-uLJizQ%40mail.gmail.com.


Django form wizard multiple file uploads problem

2020-04-08 Thread Deniz Bazan

I have a problem with form wizard, I have a form wizard with 3 steps. 
In step 2, user uploaded several files. In step 3, send the data to the 
database.
I can save files in server in step 2, but if user does not finish the form 
then files will remain on the server for free.Therefore I should not save 
files in step 2 but at done ()
Unfortunately I cannot reach all files in done () method.
How can I solve it, you have a solution for it.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/96dd0e73-a4fc-4ec0-b992-f258cc2ded16%40googlegroups.com.


ORM from the command line

2020-04-08 Thread Tim Johnson

using django.VERSION (2, 1, 5, 'final', 0) with

python 3.7.2 on ubuntu 16.04

I have a need for a "Housekeeping" application. It's usage would be to

1) connect to a database, either mysql, mariadb or postgres

2) truncate two tables and repopulate them based on an arbitrary data 
structure such as a compound list or tuple.


Such an application would not need be and most preferably should not be 
part of a deployed website.


This should not be a very complicated endeavor. The simplest method 
might be to manually establish an ORM connection using settings.py to 
import the connection credentials. I am wondering if this is possible.


However, I am unable to find documentation that would edify me on 
manually coding an ORM connection and clearing a database without the 
loading of django resources.


If such an approach is feasible, I would welcome URLs to appropriate 
documentation and/or discussion.


Using a model-view approach would be the simplest method, I would think, 
but there would be no need to have such a view deployed. There is 
probably a solution that would necessitate installing a custom package 
to be used from manage.py, such as 
https://github.com/KhaledElAnsari/django-truncate and that might be 
complicated.


Comments are welcome

thanks

--
Tim
tj49.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4be7c6fc-d99e-7419-24ef-d54cbdf384d4%40akwebsoft.com.


font awesome loading problem

2020-04-08 Thread Soumen Khatua
Hi Folks,

I'm using AWS S3 bucket for my django project,now I want to serve all the
sattic files using this s3 bucket. So I copied all the all static file from
CDN and websites to my S3 bucket.All are working fine for font-awesome I'm
getting some error like:

*Access to font at
'**https://xyz.s3.amazonaws.com/static/css/font-awesome/fonts/fontawesome-webfont.woff2?v=4.7.0
**'
from origin '**http://127.0.0.1:8000
**' has
been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is
present on the requested resource.*

I spent  almost 1day to solve this probem and still I don't now How to
solve it??
Please help me guys regarding this issue.

Thank you in advance

Regards,
Soumen

Note: All error are here

*Access to font at
'https://xyz.s3.amazonaws.com/static/css/font-awesome/fonts/fontawesome-webfont.woff?v=4.7.0
'
from origin 'http://127.0.0.1:8000 ' has been
blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present
on the requested resource.*



*GET
https://xyz.s3.amazonaws.com/static/css/font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0

net::ERR_FAILED?m=conversations&q=sql:945 1*

*GET
https://xyz.s3.amazonaws.com/static/css/font-awesome/fonts/fontawesome-webfont.woff?v=4.7.0

net::ERR_FAILED*

*Access to font at
'https://xyz.s3.amazonaws.com/static/css/font-awesome/fonts/fontawesome-webfont.ttf?v=4.7.0
'
from origin 'http://127.0.0.1:8000 ' has been
blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present
on the requested resource.*

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPUw6WaCrSjdH7%2B0Ng1Wh_s5%2BAxH-7ike1Y9ntcwzUfQYqoOGw%40mail.gmail.com.