Re: Having ERROR running Django project !!!

2018-03-29 Thread Jamaldin Pro
Thank you!

On Thursday, March 29, 2018 at 8:07:07 PM UTC+6, Jani Tiainen wrote:
>
> Yes. I managed to "fix" your code.,
>
> https://github.com/XJoma/mk-center1/blob/master/home/views.py#L47
>
> Firstm never, ever pass locals() anywhere it's best way to introduce a lot 
> of bugs. Also you have quite a good record of from foo import * which is as 
> bad as well.
>
> But your problem is that fourth parameter to render() is actually 
> content_type. Now you're passing total garbage for content_type which 
> causes browser to think that incoming data is something it can't handle and 
> downloads it.
>
> There is no parameter that would fit anything what could take another dict 
> besides context which you're already passing in.
>
>
> On Thu, Mar 29, 2018 at 3:03 PM, Jamaldin Pro  > wrote:
>
>> Can you help? 
>>
>> -- 
>> 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/46a977ea-0582-44c0-bb9a-5de39b0654c1%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/48c845ee-88ec-47dd-b67b-fafb6b8f2387%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Having ERROR running Django project !!!

2018-03-29 Thread Jani Tiainen
Yes. I managed to "fix" your code.,

https://github.com/XJoma/mk-center1/blob/master/home/views.py#L47

Firstm never, ever pass locals() anywhere it's best way to introduce a lot
of bugs. Also you have quite a good record of from foo import * which is as
bad as well.

But your problem is that fourth parameter to render() is actually
content_type. Now you're passing total garbage for content_type which
causes browser to think that incoming data is something it can't handle and
downloads it.

There is no parameter that would fit anything what could take another dict
besides context which you're already passing in.


On Thu, Mar 29, 2018 at 3:03 PM, Jamaldin Pro 
wrote:

> Can you help?
>
> --
> 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/46a977ea-0582-44c0-bb9a-5de39b0654c1%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/CAHn91of9bcp%3DxcRHgnM_8MZa2pMZ1bZ5B5_yKsWU%3DX7N%2BuOrwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Having ERROR running Django project !!!

2018-03-29 Thread Jamaldin Pro
Can you help?

-- 
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/46a977ea-0582-44c0-bb9a-5de39b0654c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Having ERROR running Django project !!!

2018-03-28 Thread Jamaldin Pro
https://github.com/XJoma/mk-center1

django version 1.11.5
now you have my project. So fix my problem plz !!!
It is my first time uploading so I don't know how to not show my password

-- 
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/b7fe9ec3-a369-4051-89ca-fa76a818f522%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Having ERROR running Django project !!!

2018-03-28 Thread Jani Tiainen
Hi.

Preferably whole project for example put it in github. If you upload your
project remember to remove sensitive data like your database passwords.


28.3.2018 5.35 ip. "Jamaldin Pro"  kirjoitti:

It is unknown and When I try to open it, it shows programs to open with I'm
> choosing chrome and my site opens without css/static/js I think that is
> html file
>

DEBUG = True

Can you tell me what files you need because I have a lot of files.setting.py?
/ wsgi.py? / urls.py? / template HTMLs?

-- 
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/464be6ef-d95b-4b69-95f8-043c5d772751%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/CAHn91oeeHNrHFHbq6FeWwNpm11BbrPn3gFd-gOLArqoi%3DeOi6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Having ERROR running Django project !!!

2018-03-28 Thread Jamaldin Pro

>
> It is unknown and When I try to open it, it shows programs to open with 
> I'm choosing chrome and my site opens without css/static/js I think that is 
> html file 
>

DEBUG = True

Can you tell me what files you need because I have a lot of 
files.setting.py? / wsgi.py? / urls.py? / template HTMLs?

-- 
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/464be6ef-d95b-4b69-95f8-043c5d772751%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Having ERROR running Django project !!!

2018-03-28 Thread Jani Tiainen
Hi.

Unfortunately you really don't provide anything helpful, and yelling here
doesn't get you very far.

Have tried to check out what that "unknown file" contains? Also have you
used your browser debugger tools to verify that you don't get errors that
for some reason is shadowed by your browser?

Do you have DEBUG=True on? In that case if something breaks your code you
will get Django techincal 500 page that contains quite a lot of information
about your issue.

Finally, can you share your code repository so people could even guess
what's wrong with your code?


On Wed, Mar 28, 2018 at 4:45 PM, Jamaldin Pro 
wrote:

> I see no logs error and When I run it from chrome this error happens but
> when I try to use it from Internet e.version~9 it works normally, I can
> deal with it but also when I deploy to pythonanywhere there is error too.
> Yes I run it "python manage.py runserver"
>
> --
> 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/9f87ff07-373b-4f8b-9ef5-3aa85710a563%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/CAHn91ocR%2B0K%2B2XAMvv%3DuhRKyNFb4WGx7yG%3DimOrytxHWoMuUHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Having ERROR running Django project !!!

2018-03-28 Thread Jamaldin Pro
I see no logs error and When I run it from chrome this error happens but 
when I try to use it from Internet e.version~9 it works normally, I can 
deal with it but also when I deploy to pythonanywhere there is error too. 
Yes I run it "python manage.py runserver"

-- 
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/9f87ff07-373b-4f8b-9ef5-3aa85710a563%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Having ERROR running Django project !!!

2018-03-26 Thread Julio Biason
Hi Jamaldin,

Kinda hard to help you here, because there is a lot of information lacking.
Like, do you see any errors on your logs? Are you running in dev
environment (like in `python manage.py runserver`) or are you running with
a webserver (nginx) in front of it? Are you using
wsgi/gunicorn/any-other-wsgi-server? Do you see anything weird in their
logs?

On Mon, Mar 26, 2018 at 12:17 PM, Jamaldin Pro 
wrote:

> Hello
> I was creating a Djnago project and when I finish it, it was working
> perfectly but when I start adding ("name"/"text"/"information") to models
> from admin page, It stops working I mean after adding I can't open my home
> page. *If I will try to open it, it auto downloads unknown file*.
>
> *I NEED HELP AS SOON AS POSSIBLE* !!!
>
> Thank u.
>
> --
> 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/ff450a0d-4e9a-47b6-a132-3e216fbd98ef%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Julio Biason*, Sofware Engineer
*AZION*  |  Deliver. Accelerate. Protect.
Office: +55 51 3083 8101   |  Mobile: +55 51
*99907 0554*

-- 
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/CAEM7gE2K-%2Bn5hjwQr_QWYDBnvpYyO4CAX%3DX-czJshX21n%2BqiHQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Having ERROR running Django project !!!

2018-03-26 Thread Jamaldin Pro
Hello
I was creating a Djnago project and when I finish it, it was working 
perfectly but when I start adding ("name"/"text"/"information") to models 
from admin page, It stops working I mean after adding I can't open my home 
page. *If I will try to open it, it auto downloads unknown file*.

*I NEED HELP AS SOON AS POSSIBLE* !!!

Thank u.

-- 
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/ff450a0d-4e9a-47b6-a132-3e216fbd98ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.