Launching websites

2016-08-08 Thread david . vaks9
Hi, This is slightly off topic, but I can imagine some of you might have faced this situation. I've been launching quite a few websites lately. It usually involves at least the following for me: - Domain registration and DNS setup - Server/Host configuration: Heroku setup (registration,

Re: Adding custom Template downloaded

2016-08-08 Thread Fabio C. Barrionuevo da Luz
Please, explain step by step, what and how you do to get "template" from github. That said, when I was starting out in the world of information technology, this text gave me several useful tips on how to ask questions in order to have more chances to get a satisfactory answer:

Re: Adding custom Template downloaded

2016-08-08 Thread ludovic coues
If you haven't done a django tutorial, I highly recommend doing one. http://tutorial.djangogirls.org/ is really friendly for beginner but you can do the official one at https://docs.djangoproject.com/en/1.10/intro/tutorial01/. if you want more help than that, sharing what you have tried is a good

Re: Adding custom Template downloaded

2016-08-08 Thread Timothy Steele
Please What I am Talking about is this i have download a template from www.github.com, but i can not configure it and i need a help please On Monday, August 8, 2016 at 2:55:23 PM UTC+1, Timothy Steele wrote: > > I want to get a step by step process on how to add a django template >

Re: Adding custom Template downloaded

2016-08-08 Thread Tim Graham
What template did you download? What template are you trying to replace? On Monday, August 8, 2016 at 12:41:06 PM UTC-4, Timothy Steele wrote: > > > Please What I am Talking about is this > i have download a template from www.github.com, but i can not configure > it and i need a help please >

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
For the benefit of anyone following this thread. I've found some relevant information, even if I don't understand the entire picture. The important point seems to be the locale in which the Apache server is running. The default Fedora configuration sets LANG=C for the httpd server. Apparently,

Re: Adding custom Template downloaded

2016-08-08 Thread Timothy Steele
THANK YOU On Monday, August 8, 2016 at 2:55:23 PM UTC+1, Timothy Steele wrote: > > I want to get a step by step process on how to add a django template > downloaded > so that i can over ride the default template that django give to me by > default > Please any help > > Thanks > > -- You

Re: Launching websites

2016-08-08 Thread Sergiy Khohlov
Hello David, You have mixed different tasks. I have a question for you. What kind of goal do you have? Are you planing to have mail server, web server, dev box etc? How much money are you going to spend? Do you have sysadmin ? Of course first question has high priority. Thanks., Serge 8 серп.

associating save link with button

2016-08-08 Thread Larry Martell
Not really a django question but I'm hoping someone can help me here. I have a django app but the html is not displayed in a browser - render_to_string is called and the html is returned in a response to custom app that displays the page. On the page I have a button that sends a request back to

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread M Hashmi
Oh Great! It was great learning for me as well while searching out the solution. Take care Goran, Regards, Mudassar On Mon, Aug 8, 2016 at 9:57 AM, Göran Uddeborg wrote: > For the benefit of anyone following this thread. I've found some > relevant information, even if I

Re: Please Can Some one Help me To get my static files load my default CSS files

2016-08-08 Thread Timothy Steele
On Monday, August 8, 2016 at 1:16:57 AM UTC+1, Timothy Steele wrote: > > Please any time i try to load my Django admin panel the default CSS files > does not load and even i have to refresh several time before i can the css > file will load, and even if i log in still the interface become

Re: Django Multiple Currencies Implementation

2016-08-08 Thread Ali khan
Thank you mike for your kind reply but question was more related to how to setup moneyfield using what available modules. Use case is that a payment processor should be able to determine exchange value for instance if price is listed in Asian currency and someone wants to make payment in USD then

Re: Django Multiple Currencies Implementation

2016-08-08 Thread Ali khan
Thank you Babatunde, That is also I am not aware of that which payment processor supports such functions. So if you've implemented any such kind of api please let me know. Regards, Ali On Sun, Aug 7, 2016 at 11:31 PM, Ali khan wrote: > Thank you mike for your kind

Re: Please Can Some one Help me To get my static files load my default CSS files

2016-08-08 Thread Timothy Steele
On Monday, August 8, 2016 at 1:16:57 AM UTC+1, Timothy Steele wrote: > > Please any time i try to load my Django admin panel the default CSS files > does not load and even i have to refresh several time before i can the css > file will load, and even if i log in still the interface become

Re: Django Multiple Currencies Implementation

2016-08-08 Thread Babatunde Akinyanmi
Hello Ali, Mike has given a good analysis of the financials and your database implementation will depend on which option you choose. I know that's not the most helpful answer in the world but that will help in making good suggestions regarding the problem. If you ask me, stick to one currency

Re: Please Can Some one Help me To get my static files load my default CSS files

2016-08-08 Thread Timothy Steele
M Hashmi Thanks For the response it work for me. I will like you to also give me a step by step process on how to add a template downloaded so that i can change the default template On Mon, Aug 8, 2016 at 11:49 AM, M Hashmi wrote: > You need to set your static in

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread M Hashmi
I am sorry but I need some time for R coz few things about encoding/decoding are confusing. I've tried to recreate error on my apache live server but I couldn't create this error. Kindly wait for others to reply or I will search it out after some time. I am trying to add a new app on one of my

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
M Hashmi: > Can you kindly post your installed apps again and root urls.py in project > directory. Sure, it's attached in this mail too. > You said you have nothing in your app models so is there nothing at all in > app? Correct. To isolate the problem I've made a minimal app that doesn't do

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
M Hashmi: > http://stackoverflow.com/questions/728891/correct-way-to-define-python-source-code-encoding I'm using UTF-8 in Python 3 where it is the default. So that is probably not the issue. http://stackoverflow.com/questions/14083111/should-i-use-encoding-declaration-in-python3 -- You

Re: deprecated urls as strings: problem adding second + urls to main urls.py file

2016-08-08 Thread Tim Graham
I'm not sure exactly what you're asking. Maybe you could give a concrete example. For a complex example, you could take a look at the urls.py for djangoproject.com: https://github.com/django/djangoproject.com/blob/249c3482982fc43afc6b6fa575fe79f938ebe472/djangoproject/urls/www.py. There are

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
Internal server error is coming.. On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? > How can i create function in django to execute this command ? > -- You received this message because you are

Re: How o run shell command in Django ?

2016-08-08 Thread M Hashmi
Send error. On Mon, Aug 8, 2016 at 4:14 AM, Asad ur Rehman wrote: > Internal server error is coming.. > > On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: >> >> I want to run *fs_cli -x *command in django . Can anybody help me ? >> How can i create

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
tail -f /var/log/newfies/gunicorn_newfies_dialer.log when i try to find error through this always give no module named urls. Debug is already = True On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? >

Please another problem

2016-08-08 Thread Timothy Steele
i have my sever running and every thing is work but at the bottom of the pannel it give this error pasted below Please help me to solve this my friends Performing system checks... System check identified no issues (0 silenced). August 08, 2016 - 08:39:33 Django version 1.10, using settings

Re: Django Multiple Currencies Implementation

2016-08-08 Thread Mike Dewhirst
On 8/08/2016 4:31 PM, Ali khan wrote: Thank you mike for your kind reply but question was more related to how to setup moneyfield using what available modules. Use case is that a payment processor should be able to determine exchange value for instance if price is listed in Asian currency and

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
M Hashmi: > List down your "civ.apps.CivConfig" also restart Gunicorn, and reload Nginx.  I'm not sure exactly what you mean by "list down". Do you want me to comment it out? In any case, to make an even more clean test case, I replaced my Django site with one I built from scratch. I.e. I

Re: How o run shell command in Django ?

2016-08-08 Thread Erik Cederstrand
I've had a lot of success interacting with the command-line by using the 'sh' module: http://amoffat.github.io/sh/ It's extremely simple but allows a lot of advanced features when you need them. I'm not on a system where fs_cli is avaliable, but you should be able to just do: from sh import

Re: Django migrations taking all the memory on Django 1.9

2016-08-08 Thread andrea crotti
Since we also use --keepdb I thought we could simply avoid running all the migrations, and maybe dynamically even skip all the apps that were not changed at all. So I just tried something silly like this: NO_MIGRATIONS = os.environ.get('NO_MIGRATIONS', 'false').lower() in ('true', '1') if

Re: How o run shell command in Django ?

2016-08-08 Thread M Hashmi
There are better ways to cut short your time to execute or even schedule tasks or commands. It won't take you more than an hour to understand Django-celery for scheduling tasks. You need to create a bash script and it should include all the steps in case you need virtualenv loaded while command

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? > How can i create function in django to execute this command ? > -- You received this message because you are subscribed to the Google Groups "Django

Re: How o run shell command in Django ?

2016-08-08 Thread Erik Cederstrand
> Den 8. aug. 2016 kl. 13.14 skrev Asad ur Rehman : > > Internal server error is coming.. If you want help, please be much more specific in your replies; post the relevant parts of the code, stacktraces, what have you tried already etc. I assume you already added

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
> Please makemigrations/migrate and restart server. It says its not getting > proper data from wsgi.py.  As my models.py is empty, I thought I didn't need to do any migration. But I've done so now just in case. It doesn't seem to change anything. > wsgi.py is not able to stream data to httpd

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread M Hashmi
In traceback the error is in last line. Somehow it is trying to import something that is returning response as string. Can you kindly post your installed apps again and root urls.py in project directory. So I can compare urls and app imports side by side. You said you have nothing in your app

Re: How o run shell command in Django ?

2016-08-08 Thread M Hashmi
Send your root urls.py code. On Mon, Aug 8, 2016 at 4:42 AM, Asad ur Rehman wrote: > tail -f /var/log/newfies/gunicorn_newfies_dialer.log > > > when i try to find error through this always give no module named urls. > Debug is already = True > > On Monday, August 8,

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread M Hashmi
http://stackoverflow.com/questions/728891/correct-way-to-define-python-source-code-encoding On Mon, Aug 8, 2016 at 4:41 AM, M Hashmi wrote: > In traceback the error is in last line. Somehow it is trying to import > something that is returning response as string. > Can you

How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
I want to run *fs_cli -x *command in django . Can anybody help me ? How can i create function in django to execute this 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,

Re: How o run shell command in Django ?

2016-08-08 Thread Matthias Müller
Hi Asad, run system calls in django means run system calls in python. Python has a library called "os". https://docs.python.org/3/library/os.html See 16.1.6 process management HTH -- Viele Grüße / Best Regards Matthias Müller 2016-08-08 11:33 GMT+02:00 Asad ur Rehman

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread M Hashmi
I am sorry bad assumption on my side. I saw your full traceback and all it says that in your project urls.py and it cannot resolve following url. url(r'^appåäö/', include('appåäö.urls')), Its picking up the this url but no app related to this urls exists. Either you need to check if this app is

Re: Please Can Some one Help me To get my static files load my default CSS files

2016-08-08 Thread M Hashmi
You need to set your static in settings.py and I am giving you simplest idea you can implement with no issues. STATIC_URL = '/static/' STATIC_ROOT = os.path.join(BASE_DIR, 'static', 'static-only') MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'static', 'media') STATICFILES_DIRS = [

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
#Mattias muller there is error while i am import sh ... How to sort it ? On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? > How can i create function in django to execute this command ? > -- You

Re: How o run shell command in Django ?

2016-08-08 Thread Erik Cederstrand
> Den 8. aug. 2016 kl. 12.54 skrev Asad ur Rehman : > > from sh import fs_cli > this is also not working ... What's the error message? Did you install the 'sh' module (pip install sh)? Erik -- You received this message because you are subscribed to the Google

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
M Hashmi: > Reply me back I am waiting. Apologies if my assumption caused your time.  No need to apologize! You are trying to help me. I'm grateful. In doing my simplified test case, I forgot to add the new app to INSTALLED_APP. Thanks for the pointer! But after fixing that, I get an

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
sh is already installed On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? > How can i create function in django to execute this command ? > -- You received this message because you are subscribed to the

Re: Please another problem

2016-08-08 Thread Timothy Steele
On Monday, August 8, 2016 at 10:07:30 AM UTC+1, Timothy Steele wrote: > > i have my sever running and every thing is work but at the bottom of the > pannel > it give this error pasted below Please help me to solve this my friends > Performing system checks... > > System check identified no

Re: Please another problem

2016-08-08 Thread Andreas Kuhne
Hi Timothy, There aren't any errors in the trace you are showing. There is a missing file however (404 error), that is the favicon.ico, which browsers try to fetch from the root URL if nothing is set in your html header. To resolve that, all you have to do is add a link to a favicon file. Check

Re: How o run shell command in Django ?

2016-08-08 Thread Asad ur Rehman
from sh import fs_cli this is also not working ... On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: > > I want to run *fs_cli -x *command in django . Can anybody help me ? > How can i create function in django to execute this command ? > -- You received this message

Re: How o run shell command in Django ?

2016-08-08 Thread M Hashmi
Install sh with pip. http://amoffat.github.io/ On Mon, Aug 8, 2016 at 3:54 AM, Asad ur Rehman wrote: > from sh import fs_cli > this is also not working ... > > > > > On Monday, August 8, 2016 at 2:33:12 PM UTC+5, Asad ur Rehman wrote: >> >> I want to run *fs_cli -x

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread M Hashmi
Please makemigrations/migrate and restart server. It says its not getting proper data from wsgi.py. wsgi.py is not able to stream data to httpd because it has internal issues. Also to see if project is working fine please always use runserver so you can see django related errors. Otherwise you

Re: Using non-ASCII app name via Apache server

2016-08-08 Thread Göran Uddeborg
M Hashmi: > I am sorry but I need some time for R coz few things about encoding/decoding > are confusing. Agreed! :-) I've always found Python's encoding handling confusing. Not quite as much in Python 3 as in Python 2, but still. To rule out all eventualities, I made a second app called

Re: Django migrations taking all the memory on Django 1.9

2016-08-08 Thread Tim Graham
I think that error suggests that you disabled migrations for an app (something_else) that's a dependency of another app that doesn't have migrations disabled (something). That isn't permitted. I guess there's no good solution for your requirements as of now. On Monday, August 8, 2016 at

Adding custom Template downloaded

2016-08-08 Thread Timothy Steele
I want to get a step by step process on how to add a django template downloaded so that i can over ride the default template that django give to me by default Please any help Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Adding custom Template downloaded

2016-08-08 Thread Tim Graham
I'm not sure what you're asking. Does this documentation proposal help? https://github.com/django/django/pull/6720 On Monday, August 8, 2016 at 9:55:23 AM UTC-4, Timothy Steele wrote: > > I want to get a step by step process on how to add a django template > downloaded > so that i can over