Re: how to use apache instead of django_server

2014-12-29 Thread phil...@bailey.st
Sorry,

just forgot to attach the link

https://forge.puppetlabs.com/pbailey/django_bootstrap

Best,

Phillip

On 29/12/14 18:09, phil...@bailey.st wrote:
> 
> Hello there,
> 
> if you are familiar with puppet you can take a look to this module.
> 
> Best,
> 
> Phillip
> 

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/54A19A40.30700%40bailey.st.
For more options, visit https://groups.google.com/d/optout.


Re: how to use apache instead of django_server

2014-12-29 Thread phil...@bailey.st

Hello there,

if you are familiar with puppet you can take a look to this module.

Best,

Phillip



On 29/12/14 17:26, th.gran...@free.fr wrote:
> Merci
> Thanks
> 
> just another question
> 
> when you don't use apache but the internal server of Django you start
> the command runserver for loging to django admin
> how to connect with apache?
> 
> Many thanks
> 
> T.
> 
> Le lundi 29 décembre 2014 13:11:01 UTC+1, th.gr...@free.fr a écrit :
> 
> Hello
> 
> i'm a very new user of python and i'd luke to install Django
> i want to use apache server instead of the internal Django server.
> 
> i read the documentation and installed wsgi
> but now i don't know how to connect Django admin via apache!!
> 
> thanks for your help
> 
> T

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/54A198D9.30501%40bailey.st.
For more options, visit https://groups.google.com/d/optout.


Re: Any actual open project to create a company "social" network using Django?

2014-12-27 Thread phil...@bailey.st
On 26/12/14 16:31, Fellipe Henrique wrote:
> Hi,
> 
> There's any actual open project to create a company "social" network
> using Django? I search on google, and I don't find any project using
> django (or even other python framework)  only PHP or Ruby...
> 
> Thanks,
> 
> Cheers!
> 

Another simple tutorial is building ribbit in django.


http://code.tutsplus.com/tutorials/building-ribbit-in-django--net-29957

Best,

Phillip

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/549F0354.8090501%40bailey.st.
For more options, visit https://groups.google.com/d/optout.


Re: Any actual open project to create a company "social" network using Django?

2014-12-27 Thread phil...@bailey.st

Event though the following tutorial is not up to date with Django 1.7,
it is still quite understandable.

http://arunrocks.com/building-a-hacker-news-clone-in-django-part-1/


Best,

Phillip


On 27/12/14 17:10, Scot Hacker wrote:
> 
> 
> On Friday, December 26, 2014 8:31:16 AM UTC-8, Fellipe Henrique wrote:
> 
> Hi,
> 
> There's any actual open project to create a company "social" network
> using Django? I search on google, and I don't find any project using
> django (or even other python framework)  only PHP or Ruby...
> 
> 
> 
> The Pinax Project includes quite a few social features:
> http://pinaxproject.com/
> 
> See also the "Social" section of djangopackages.com:
> https://www.djangopackages.com/grids/g/social/ 
> 
> but  at the end  of the day, Django is more about helping you to build
> the features you need. You might start by creating a project that uses
> one of the social login modules (like django-allauth) and then integrate
> a simple Follow model with manytomany connections between users.
> 



-- 
www.bailey.st

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/549EFA3A.5020705%40bailey.st.
For more options, visit https://groups.google.com/d/optout.


Re: Django 1.7 and Python 2.6

2014-09-27 Thread phil...@bailey.st

Hello there,

docker might do the job.

Cheers,

Phillip


On 27/09/14 20:42, Babatunde Akinyanmi wrote:
> Hi,
> If you can download in your server then you can install python 2.7+ into
> your virtenv.
> 
> On 27 Sep 2014 19:54, "François Schiettecatte"  > wrote:
> 
> Hi

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/54271FDF.6090201%40bailey.st.
For more options, visit https://groups.google.com/d/optout.


Re: linux or windows

2013-05-31 Thread phil...@bailey.st

forgot to include a vagrant video how-to

http://www.youtube.com/watch?v=MiRMvB65U1Y

Best,

Phillip


On 31/05/13 21:53, phil...@bailey.st wrote:
> Hi Kakar,
> 
> if you want to use Linux within Window, I strongly advise you to
> use Vagrant http://docs-v1.vagrantup.com/v1/docs/getting-started/
> 
> Vagrant will bring up and running a Linux virtual server within minutes.
> 
> Best,
> 
> Phillip
> 
> 
> On 31/05/13 12:11, Kakar Arunachal Service wrote:
>> Hi!
>> I know this question is one absurd question, but just out of curiosity,
>> is it important to use linux other than the windows, related to django.
>> Cause i'm in windows, and if it is, then i was thinking to use Ubuntu.
>> Please advise.
>>
>> -- 
>> 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 http://groups.google.com/group/django-users?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
> 
> 


-- 
www.bailey.st

-- 
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 http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: linux or windows

2013-05-31 Thread phil...@bailey.st
Hi Kakar,

if you want to use Linux within Window, I strongly advise you to
use Vagrant http://docs-v1.vagrantup.com/v1/docs/getting-started/

Vagrant will bring up and running a Linux virtual server within minutes.

Best,

Phillip


On 31/05/13 12:11, Kakar Arunachal Service wrote:
> Hi!
> I know this question is one absurd question, but just out of curiosity,
> is it important to use linux other than the windows, related to django.
> Cause i'm in windows, and if it is, then i was thinking to use Ubuntu.
> Please advise.
> 
> -- 
> 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 http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  


-- 
www.bailey.st

-- 
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 http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Why Postgres over Mysql?

2013-05-17 Thread phil...@bailey.st

Hi frocco,

Mysql was recently aquired by Oracle and the future isn't very bright
for the database. So, if you have an application already using MySQL
you can easly switch to mariadb https://mariadb.org/ or percona server
www.percona.com. If you are starting a new project I strongly advise you
to go for PostgreSQL.

Below you can find a few articles on the topic.

Replacing MySQL with MariaDB

http://www.openlogic.com/wazi/bid/272031/Replacing-MySQL-with-MariaDB

MySQL vs postgresql:

http://www.openlogic.com/wazi/bid/188125/PostgreSQL-vs-MySQL-Which-Is-the-Best-Open-Source-Database


Best,

Phillip


On 17/05/13 20:38, frocco wrote:
> My site is currently using Mysql, would it benefit me to switch to Postgres?
> 
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  


-- 
www.bailey.st

-- 
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 http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to Handle XML and CSV processing in Django

2013-05-14 Thread phil...@bailey.st
On 14/05/13 18:41, Muhammad Ali wrote:
> Thanks a lot for these resources. 
> 
> All the best, 
> Muhammad
> 


Hi Muhammad,

if you have a csv dataset you can try to import the data into mysql
following my short tutorial.


http://bailey.st/blog/2012/02/22/bits-of-python-import-a-csv-file-into-a-mysql-database/


Best,

Phillip


-- 
www.bailey.st

-- 
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 http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Accessing django development server using internet

2013-05-11 Thread phil...@bailey.st
On 07/05/13 17:38, Kakar wrote:
> I have my project in my pc, and on python manage.py runserver, i can view it 
> on my browser. But how to view from other computer or on the internet and not 
> locally?... How to make my pc a server to view it from over the internet? Plz 
> help me guyz!
> 

I Kakar,

you can try www.heroku.com to deploy publicly your sample code.

Best,
Phillip



-- 
www.bailey.st

-- 
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 http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: 32-bit integers IP address to 4-octet IP address

2011-01-23 Thread phil...@bailey.st
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I aledr,

thanks for your reply,


I've added the  socket.inet_ntoa to my  view.py

#view.py
from django.http import HttpResponse
import socket
from snort.models import  Iphdr


def snort(request):

ip = Iphdr.objects.values("ip_src")
return socket.inet_ntoa(ip)


after opening the web page I get this error bac





Request Method: GET
Request URL:http://192.168.1.5:8080/
Django Version: 1.3 beta 1
Exception Type: TypeError
Exception Value:

inet_aton() argument 1 must be string, not ValuesQuerySet

Exception Location: /home/user/django/app/../snort/views.py in snort,
line 10
Python Executable:  /usr/bin/python
Python Version: 2.6.5
Python Path:

['/home/crypto/django/snort',
 '/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2',
 '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old',
 '/usr/lib/python2.6/lib-dynload',
 '/usr/lib/python2.6/dist-packages',
 '/usr/lib/pymodules/python2.6',
 '/usr/lib/pymodules/python2.6/gtk-2.0',
 '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode',
 '/usr/local/lib/python2.6/dist-packages']
~


What I'm doing wrong ?

Thanks again,

Phillip



On 01/23/2011 07:18 PM, aledr wrote:
> I guess socket.inet_ntoa is enough for what you need.
> 
> On Sun, Jan 23, 2011 at 7:06 AM, Phillip Bailey <phil...@bailey.st> wrote:
> 
> 
> Dear All,
> 
> I've started playing around with Django in the last few days, and I'm
> enjoying the speed
> and the power of such framework. I'm writing a small application to
> display and sort
> ip addresses stored in a Postgresql database, right now I'm stuck with
> 32-bit integers
> IP address translated to 4-octet IP address .
> 
> Here's the the class of the ip address.
> 
> class Iphdr(models.Model):
>sid = models.IntegerField(primary_key=True)
>cid = models.BigIntegerField(primary_key=True)
>ip_src = models.BigIntegerField()
>ip_dst = models.BigIntegerField()
>ip_ver = models.SmallIntegerField()
>ip_hlen = models.SmallIntegerField()
>ip_tos = models.SmallIntegerField()
>ip_len = models.IntegerField()
>ip_id = models.IntegerField()
>ip_flags = models.SmallIntegerField()
>ip_off = models.IntegerField()
>ip_ttl = models.SmallIntegerField()
>ip_proto = models.SmallIntegerField()
>ip_csum = models.IntegerField()
>class Meta:
>db_table = u'iphdr'
> 
> 
> As the IP addresses are stored in the database as unsigned 32-bit
> integers, so when I
> run  ip = Iphdr.objects.values("ip_src") the result is in 32-bit integers,
> 
> {'ip_src': 3251031814L}{'ip_src': 3251031816L}{'ip_src': 3251031816L}
> {'ip_src': 3251031816L}{'ip_src': 3251031814L}{'ip_src': 3251031816L}
> 
> There's any elegant solution that can translate 32-bit integers to
> 4-octet IP address (192.168.1.88) ?
> 
> Thanks in advance.
> 
> Phillip
>>
- --
You received this message because you are subscribed to the Google
Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.
>>
>>
> --
> [ ]'s
> Aledr - Alexandre
> "OpenSource Solutions for SmallBusiness Problems"

- -- 
Snorby SSD: The IDS (Intrusion Detection System) Linux distribution
http://bailey.st/blog/snorby-spsa/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBAgAGBQJNPK10AAoJENNBJKHbaDgTKN0IAL7YlR/rmtcrj9GDbTCUElu4
81t+0Y8let5XgnvYGVjbaUyPP+BwxhoWpN8f6PqFfohPbj+Xt9EuSdJIV9Wr84Bi
NLhWtQyw/ioFZaDH1b50smEfR1qqIsQRd+wfbor21cwe5YhjorZ9FuPoH1HBFFPp
4kct+b0vMuGb0OjlWRosVAe/p3mzbNbn8glVhqaBthAl6GmAOrBuEmRqdB6jgN2s
/fLNGKi08YdlbHn5hvnmXTONiFQf5aA40ZpKlTmCWHJUiVINfuUw7FE5E/ZuYve2
l7Vs2BIIKy3X4oRFZbeQXV/yVyOKygIwdmzJZ+iBLL4zdST8YA3Zj/8Q73pX434=
=6lwe
-END PGP SIGNATURE-

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.