Go through these article
https://medium.freecodecamp.org/using-psutil-in-python-8623d9fac8dde
On Thu, May 9, 2019 at 4:19 PM Jani Tiainen wrote:
> Hi.
>
> This is not actually Django issue.
>
> I bet there are several libs that can do it.
>
>
> ke 8. toukok. 2019 klo 17.01 Mayur Bagul
> kirjoit
Hi.
This is not actually Django issue.
I bet there are several libs that can do it.
ke 8. toukok. 2019 klo 17.01 Mayur Bagul kirjoitti:
> Hello community,
>
> i searched on google bout this and what i found was psutil is no longer
> having check temperature attribute.
>
> im not getting how t
Hello community,
i searched on google bout this and what i found was psutil is no longer
having check temperature attribute.
im not getting how to do this.
help me with this !
thanking you,
Mayur Bagul.
--
You received this message because you are subscribed to the Google Groups
"Django use
On 13/02/2018 11:09 AM, Tom Tanner wrote:
I have a Django project that I want to work on with another computer.
Do I need to backup my current project's Postgres database and restore
it on the other computer's Postgres database to get my project up and
running there? Or is there a
You should be using some kind of git system. Push your code to the repo
and pull it on the new machine. There should be no really concern switching
machines.
If your current DB has data that you need, export them and then import.
You need to know how to do this for production code, so you migh
work on with another computer. Do I
> need to backup my current project's Postgres database and restore it on the
> other computer's Postgres database to get my project up and running there?
> Or is there a Django way to do this?
>
> --
> You received this message becaus
Hi,
you can use rsync for your project's source code.
Etienne
Le 2018-02-12 à 19:09, Tom Tanner a écrit :
I have a Django project that I want to work on with another computer.
Do I need to backup my current project's Postgres database and restore
it on the other computer's Po
I have a Django project that I want to work on with another computer. Do I
need to backup my current project's Postgres database and restore it on the
other computer's Postgres database to get my project up and running there?
Or is there a Django way to do this?
--
You received th
t; >> from django.template import RequestContext
>> > >> from myapp.models import Temperature
>> > >> from myapp import models
>> > >> import socket , select
>> > >> import os
>> > >> import datetime
>> > >> socktetLis
> >> import datetime
> > >> socktetList=[]
> > >>
> > >>
> > >> @csrf_exempt
> > >> def myview(request):
> > >> if request.method == 'POST':
> > >> return HttpResponse("%s
est):
> >> if request.method == 'POST':
> >> return HttpResponse("%s %s" % (request.method, request.body))
> >> #print POST body
> >> else:
> >> return HttpResponse("%s %s" % (request.method, requ
t;>> @csrf_exempt
>>> def myview(request):
>>> if request.method == 'POST':
>>> return HttpResponse("%s %s" % (request.method, request.body))
>>> #print POST body
>>> else:
>>> return H
def myview(request):
>> if request.method == 'POST':
>> return HttpResponse("%s %s" % (request.method, request.body))
>> #print POST body
>> else:
>> return HttpResponse("%s %s" % (request.method, request.body))
&g
(everything is ok)
> but when i open my browser it return "GET",
>
> i want it to return or display POST DATA.
>
> how can i do that??
> please help
>
>
>
> On Thu, May 7, 2015 at 4:13 PM, Thomas Levine <_...@thomaslevine.com> wrote:
>
>> On 07
15 at 4:13 PM, Thomas Levine <_...@thomaslevine.com> wrote:
> On 07 May 16:00, steve malise wrote:
> > The error comes when i runserver and send data from another computer to
> > django,then i get this "code 400, message Bad request syntax ( data from
> > another compu
On 07 May 16:00, steve malise wrote:
> The error comes when i runserver and send data from another computer to
> django,then i get this "code 400, message Bad request syntax ( data from
> another computer)"
This is because
On 07 May 11:42, Tom Evans wrote:
> Eurgh. Your han
What i am trying to do is run python script(client side) on another
computer which is on same network with my computer,then receive data from
another computer with the django(which is running on my computer(server
side)).i am using built-in "runserver".
The error comes when i runserve
On Thu, May 7, 2015 at 3:00 PM, steve malise wrote:
> What i am trying to do is run python script(client side) on another computer
> which is on same network with my computer,then receive data from another
> computer with the django(which is running on my computer(server side)).i am
>
On Thu, May 7, 2015 at 12:48 PM, steve malise wrote:
> where can i write web server?
>
Why do you want to?
Django is a web application, it is hosted inside webservers, typically
using WSGI. Typically, you would use one of the many webservers that
can host wsgi applications - nginx, apache+mod_ws
where can i write web server?
On Thu, May 7, 2015 at 12:42 PM, Tom Evans wrote:
> On Thu, May 7, 2015 at 9:24 AM, steve malise wrote:
> >
> > client side code:
> > data = "message"
> > try:
> > clsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> > clsocket.connect(('192.168.
On Thu, May 7, 2015 at 9:24 AM, steve malise wrote:
>
> client side code:
> data = "message"
> try:
> clsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> clsocket.connect(('192.168.2.2', 8000))
> print("Connection has been Made")
> clsocket.send("POST / HTTP/1.1 "+ data)
client side code:
data = "message"
try:
clsocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
clsocket.connect(('192.168.2.2', 8000))
print("Connection has been Made")
clsocket.send("POST / HTTP/1.1 "+ data)
clsocket.close()
except:
print("ERROR:Connection
I was having problems with my laptop before. Good thing *
FixComputerpProblemsSite* helped me fix it. And they are really the experts
when it comes to solving any computer related issues. They can easily fix
computer problems <http://www.fixcomputerproblemssite.com/> without breaking
a
Hi All,
I ran into a problem: If I do not configure TIME_ZONE in settings.py,
it will use "America/Chicago" by default. However I just want to use
the same setting as it in my linux system (openSUSE11). Is it possible
Otherwise I have to configure the timezone setting for all my linux
machines.
Firefox but it happens with IE6 as well).
The most surprising thing is it happened when I created a new user
using the admin site, logged in as the super user on computer. I then
logged out, and logged in on the same computer as the new user. I
logged out. Then I went to another computer, where the new
admin site, it worked very nicely yesterday, but today the boss
> gave me a new computer so i had to move everything from the old
> computer to the new one.
> everything is working perfectly except for the admin site!
> when i try to visit the url "http://127.0.0.1:8000/admin/"
Hi,
I'm working on the django tutorial, and i'm at the phase of creating
an admin site, it worked very nicely yesterday, but today the boss
gave me a new computer so i had to move everything from the old
computer to the new one.
everything is working perfectly except for the admin si
ch of an issue. It's your responsibility to keep the session
table clean:
http://docs.djangoproject.com/en/dev/topics/http/sessions/#clearing-the-session-table
On Feb 1, 9:29 am, felix wrote:
> I'm trying to implement the standard option "remember me on this computer"
>
>
felix wrote:
>
> I'm trying to implement the standard option "remember me on this computer"
>
> which in practice means expire the session or not at the end of the
> session
No it doesn't: you want the session to end when the user logs out,
otherwise in a la
I'm trying to implement the standard option "remember me on this computer"
which in practice means expire the session or not at the end of the session
it looks like django's auth uses a sitewide setting
SESSION_EXPIRE_AT_BROWSER_CLOSE
does anybody know the best way to app
Hello friends..,
Success usually comes to those who are too busy to be looking for it.
Visit Latest Mobiles,Laptops,Comp...,
www.mobile-computer4all.blogspot.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Djan
Hi Aaron,
I'm assuming that it doesn't have errors, as I can run the website
using the built-in server. It's just an new, empty project, so all I
get is the django welcome page. I'm hoping I'll have better luck
configuring my Mac at home, which is where I'll be doing 99% of my
development anyway.
Brandon,
I just realized also, from your original error:
EnvironmentError: Could not import settings 'testproject.settings' (Is
it on sys.path? Does it have syntax errors?): No module named
testproject.settings.
Does it have syntax errors?
Aaron
Aaron Fay wrote:
Hey Brandon,
Here's m
Hey Brandon,
Here's my exact setup:
SetHandler python-program
PythonPath "['C:\django'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE testproject.settings
PythonDebug On
SetHand
Hi Guys,
Yes, I've tried that as well. No dice. Ugh!
b
On Feb 6, 1:22 pm, Michael Hipp <[EMAIL PROTECTED]> wrote:
> Is there a reason this line looks like this:
> >
>
> Instead of like this:
> >
>
> Michael
>
> Brandon Taylor wrote:
> > Well, still no working solution, but here is my
Is there a reason this line looks like this:
>
Instead of like this:
>
Michael
Brandon Taylor wrote:
> Well, still no working solution, but here is my httpd.config now:
>
>
> SetHandler python-program
> PythonPath "['C:/django_projects/', 'C:/Python25/lib/site-packages/
> dj
Try changing to
Django's probably looking for testproject.testproject.settings
M.
-Original Message-
From: django-users@googlegroups.com on behalf of Brandon Taylor
Sent: Thu 2/7/2008 8:16 a.m.
To: Django users
Subject: Re: Setting up Apache & mod_python on my development
Well, still no working solution, but here is my httpd.config now:
SetHandler python-program
PythonPath "['C:/django_projects/', 'C:/Python25/lib/site-packages/
django'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE testproject.settings
Hi Aaron,
I'm still getting the same error after I restart Apache. Is there a
better setup to use for the install location for Django and where I
place my projects that plays nice with Apache?
Thanks,
Brandon
On Feb 6, 11:05 am, Aaron Fay <[EMAIL PROTECTED]> wrote:
> Hey Brandon,
>
> I have min
Hi,
Brandon Taylor wrote:
>
> SetHandler python-program
> PythonPath "['C:/django_projects/testproject'] + sys.path"
> [...]
Try :
PythonPath "['C:/django_projects/'] + sys.path"
instead, since "testproject" is the subdirectory where you project lives in.
Maybe changing the
Hey Brandon,
I have mine working on the same rig as you (looks like). Here's a shot
in the dark:
# << add forward slash
SetHandler python-program
PythonPath "['C:/django_projects/'] + sys.path" # << remove 'testproject'
PythonHandler django.core.handlers.modpython
SetEnv DJANG
Hi everyone,
I have Apache 2 and mod_python installed on Windows. The mod_python
module is loaded and active.
Here's a breakdown of where things are...
Python is installed at: C:\Python25
Django is installed at: C:\Python25\Lib\site-packages
\django
My 'testproject' in i
Dear ladies and gentlemen:
Welcome to visit our shopping web. Our products (notebook PC,digital
camera,plasma and LCD TV,digital DV,Motos,phones,Mp3/4 and more) are
at trade price, with the purpose of increasing the number of customers
cooperating with our company in the long run. Anyone joining
Hi guys,
Look at these 12 video courses
http://freevideolectures.com/ComputerScience/
covering all the lessons about computer science including C, C++,
JAVA, XML, PHP, algoritms, Data structures, etc All you need to
have is a Real Player.
hope this is useful to you all
The Intel(R) Core™2 Duo desktop processor delivers revolutionary
dual-core<http://computer-tripleblaze020-usys.blogspot.com/>
performance andbreakthrough processor energy efficiency.
Based on the revolutionary Intel(R) Core™ Microarchitecture, the Intel Core 2
Duo processor has been develop
High Speed Internet Details..
http://www.freewebs.com/induster/
http://amigos.com/go/g904311-pmem
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this
Hi Joe,
thx for the pointer, looks workable.
Will try it soon.
-moe
On Sun, 2007-09-23 at 23:08 -0700, Joseph Heck wrote:
> You can certainly access cookies manually and do with them as you
> like. That's how we've implemented a "remember who it was that last
> logg
You can certainly access cookies manually and do with them as you
like. That's how we've implemented a "remember who it was that last
logged in from this computer" kind of feature.
There's a set_cookie() method on the request object that can do this
work for you
Hi list,
I would like to have sessions normally timeout after
8 hours, that is easily achieved by setting
SESSION_COOKIE_AGE in settings.py.
But additionally I'd like to provide a checkbox to "stay logged
in on this computer until i log out" which shall make the
session immortal
check this out buddies... a kool site for anti hacking and hacking
tips and tricks , computer tweaks to enhance ur pc,small virus
creation ,etc it's the best site ...
www.realm-of-tricks.blogspot.com
--~--~-~--~~~---~--~~
You received
check this out buddies... a kool site for anti hacking and hacking
tips and tricks , computer tweaks to enhance ur pc,small virus
creation ,etc it's the best site ...
www.realm-of-tricks.blogspot.com
--~--~-~--~~~---~--~~
You received
Do you know anyone who plays computer all the time?
Perhaps their personal relationships, work and social life are suffering due to
their desire to constantly play computer?
If this is the case, this person you know may have a computer addiction.
http://www.info-computeraddiction.ibiz2u.com
This is an awesome program. Monthly Payouts to e-gold, Stormpay, and
PayPal between the 1st and 15th of each month.
The autosurf program will go dead every 4 hours or so, but you can log
back on right away.
Don't wait, start surfing today, I made $50 in a week already. That is
with not su
Instantly Turn your Computer into a Super TV -
http://surl.in/HLSTV238206SVRAKSX-google
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
Instantly Turn your Computer into a Super TV -
http://surl.in/HLSTV238206SVRAKSX-google
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
Sincere thanks to both Malcom and Waylan. Things are working fine now.
Waylan's suggestion didn't have an effect, but after following
Malcom's
debugging advice I found that while I had remembered to create a link
from
the httpd DocumentRoot to the project1 directory, I had not created
a link to th
On Wed, 21 Mar 2007 18:19:21 -0400, Dan Goldner <[EMAIL PROTECTED]>
wrote:
[snip]
>
> httpd.conf:
>
>
> ServerName projects.mycompany.com
> SetHandler python-program
> PythonInterpPerDirective On
>
> # Turn Off for production, On for dev:
> PythonAutoReload On
> PythonDebug On
>
>
Hello,
As noted previously I'm serving two independent, low-traffic django
projects off a single virtual host in order to use SSL without a
single certificate. Since I want static files to be SSL'd as well,
these are served from the same virtual host. This seems to be working,
with one mysterio
On Wed, 2007-03-21 at 15:19 -0700, Dan Goldner wrote:
> Hello,
>
> As noted previously I'm serving two independent, low-traffic django
> projects off a single virtual host in order to use SSL without a
> single certificate. Since I want static files to be SSL'd as well,
> these are served from
Free Computer Education Ebooks,Tutorials and much more
ASP, Business, C++, Careers, CISCO, e-books, Engineering, English,
Filmmaking, Finance, Health,
Leadership, Management, Marketing, Mathematics, Mobile, Oracle,
Perl , Photography, PHP,
Programming, VOIPand much more
visit
On Feb 12, 4:46 pm, "oggie rob" <[EMAIL PROTECTED]> wrote:
> You can specify the key/passkey files in the virtual
> host directive, which would probably be the most
> manageable way to do it:
> http://www.apache-ssl.org/docs.html#SSLCertificateFile
> However, if you use a wildcard you can use the
Thanks Rob! Very very helpful. (And thanks Jeff and Rob for the SSL
followup)
Much obliged,
Dan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-user
>
>
> We're talking about *named* virtual hosting + SSL. Named
> virtual hosting uses the "Host:" HTTP/1.1 request header
> to decide which site should receive the request. But to
> extract that from the SSL'd content we need the site's
> private key. The problem is we don't know which site
>
On Feb 12, 2:37 pm, "oggie rob" <[EMAIL PROTECTED]> wrote:
> For the cons, not true, really. You can use the same IP address.
Your advice contradicts my (very limited) understanding
of how SSL works, so please inform me of where my
ignorance lies ...
We're talking about *named* virtual hosting
> 1. One virtual host per site (project1.mycompany.com,
>project2.mycompany.com, etc.)
>
>Pros: Each project has its own admin site. The sqlite database
>file for each project is independent of the others.
>
>Cons: For SSL, each virtual host needs its own IP address and its
>ow
Hello -
I'm trying to set up multiple sites on one server using SSL, to give
each of several independent projects its own site. Each site will
have low-volume traffic and there won't be more than 5-10 up at the
same time.
My questions are:
1. Do I understand the options (below) correctly? Any I'm
Here is an Easy way to Earn Money. Earn by doing Freelancing Assignments
like Home Typing, Data Entry, Form Entry, Transcription etc. Most of these
jobs can be done from Home with your Personal Computer. At first you can
also work from Browsing Centre. Details at
*http://www.imperialbiz.com
On 8/22/06, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> I started the process of testing this on Windows and found that Python
> is only about 12MB installed. Compared to about 120MB for Ruby. My
> thinking now is that all we need is a local copy of Python, a wrapper
> script to get Django up and
I started the process of testing this on Windows and found that Python
is only about 12MB installed. Compared to about 120MB for Ruby. My
thinking now is that all we need is a local copy of Python, a wrapper
script to get Django up and running and to launch a browser at
localhost:8000, and we're
Our company lies in China,and want to proxy product (eg. compture
software). If you have any software or controls, please give a website
of your company. http://www.sharesharp.com/ thanks advance!
--~--~-~--~~~---~--~~
You received this message because you are su
A little more info this morning...
Bob Ippolito posted a followup with some guidance. It makes it much
simpler but I'm still seeing the same errors. Here's the latest
py2app-setup.py:
#!/usr/bin/env python
from setuptools import setup
setup(
app=["run.py"],
setup_requires=["py2
Malcolm Tredinnick wrote:
> On Thu, 2006-08-03 at 13:25 -0700, Rob Hudson wrote:
> > If anyone is still following along
>
> I am. Not a Mac or Windows user, but you're solving an interesting
> problem. The end result is going to be useful. Thanks for sharing this
> information.
Thanks for the sup
On Thu, 2006-08-03 at 13:25 -0700, Rob Hudson wrote:
> If anyone is still following along
I am. Not a Mac or Windows user, but you're solving an interesting
problem. The end result is going to be useful. Thanks for sharing this
information.
> I got past the last error by
> specifically adding "
If anyone is still following along I got past the last error by
specifically adding "django.db.backends.sqlite3.base" to my list of
includes. This got me a little further. The server will successfully
start up and I can make a request. I got a traceback in the browser
about django.middleware.co
I've made a little more progress this morning...
I created a run script to start up Django without needed to edit
manage.py directly. With this run script I can add other features
later. Here's the gist of it. (Quotes is my test app I created)
#!/usr/bin/env python
import sys, os
sys.path.app
Julio Nobrega wrote:
> Can't you use SSL, and tell the reviewers to use an anonymizer proxy?
Not really. We have to assume no internet connection at all and ship a
self-contained program. It makes things difficult and adds extra work.
With a PHP solution we were able to use Microweb (indigos
I was going to recommend a Live CD too, but let me get back a little
to the first thread email and perhaps say something really stupid:
On 7/31/06, Rob Hudson <[EMAIL PROTECTED]> wrote:
> As part of the grant review
> process, the reviewers must remain anonymous and therefore, we cannot
> simpl
ight now it's sort of beleagured
> > with all my additional stuff.
>
> The original poster required running on Mac as well, though. That rules
> out VMWare (Mac on Intel isn't nearly widely enough deployed yet to be a
> reasonable assumption, even if VMWare supports i
Malcolm Tredinnick wrote:
> Live CDs have a slight drawback in that they take over your computer
> whilst you are using them, so evaluating a submission whilst taking
> notes requires two computers and you lose the ability to cut and paste
> and easily take screenshots, etc, with
have a slight drawback in that they take over your computer
whilst you are using them, so evaluating a submission whilst taking
notes requires two computers and you lose the ability to cut and paste
and easily take screenshots, etc, without a lot of fiddling around
running a remote viewer.
So we stil
I've been doing exactly that myself - I have a VMWare image (not exactly LiveCD, but VMWare player is free...) that I use for a development environment. At OSCON I was taking briefly about it. I need to clean it up and post it. Right now it's sort of beleagured with all my additional stuff.
-joeOn
maybe this make no sense to you but what about making a custom Linux
liveCD with everything you need installed. All the end-user has to do is
know how to boot from CD, no install, nothing left on their systems.
Facundo
Joseph Heck wrote:
> It's a little more tricky than just packaging Django up n
It's a little more tricky than just packaging Django up nicely because of the external dependencies. I have a set of windows installers that I have bundled up for myself to drop onto windows machines to get them set up with a dev environment (sqlite3 based). It's a little tricker on the Mac - but o
Don't have any experience with this. Some options I've come across,
that may or may not work:
1) http://www.py2exe.org/ - Never used it, but have it bookmarked for
when I do need it. Like py2app but creates exe
2) http://www.voidspace.org.uk/python/programs.shtml#movpy -- From the
website: "Movab
Quick version:
Is there a way to bundle up a Django application, maybe wrap an
installer around it if need be, and distribute it by CD to install and
run on a person's local system. Preferrably cross platform (Windows
and Mac).
Long version that helps explain why we need this:
I work for a compa
85 matches
Mail list logo