Djangocon Costa Rica next year.

2015-08-18 Thread Luis Zárate
Hello everyone,

I want to organize the first "djangocon Costa Rica" next year, I know it's
too soon to speak about this but it's the first time here and it's very
important to do it well, so the community and I are planning to start the
coordination of the event, we are looking for place and sponsors and of
course your advice.

We know that in this list are people that coordinate the event in his
country and probably you have suggestions for us.
We are looking for promotional material too and something like that, we
follow the principe of DRY so if you have material that we can modify to
adapt our purpose, please contact me privately.

Thank you and any advice are welcome.

-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyMfn1gKuTq93s%2BjD_wdgc0PYn_8x4LDJqxzkTiBkaWnng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Efficient Large Binary File Streaming

2015-08-18 Thread kanav002
Yes thank you. I went over that page and decided for my real-time binary 
stream I would use a FLOT chart:

http://www.flotcharts.org/flot/examples/realtime/index.html

However, I am trying to figure out how to get the data from a large growing 
binary file to the FLOT chart. Should I use StreamingHttpResponse? Should I 
use the django-stream package. Basically I'm looking for advice from an 
experienced user what works well and what doesn't. Thanks.

Nick


On Tuesday, August 18, 2015 at 10:54:23 AM UTC-5, luisza14 wrote:
>
> Did you look here https://www.djangopackages.com/grids/g/charts/ ?
>
> 2015-08-16 18:25 GMT-06:00 kanav002 :
>
>> This is my first week using Django and version 1.8 in particular. I'm 
>> trying to figure out the best way to stream a raw, large, continuously 
>> growing binary file to a plotting function that is continuously updating 
>> the last 600 bytes of the binary file. This is primarily a client side 
>> application. I have seen many streaming snippets and the 
>> StreamingHttpResponse module but am not sure which streaming method will be 
>> optimal. I'm also not sure if streaming methods are the correct approach. 
>> Can I just read the file with Python and plot in a browser window? 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...@googlegroups.com .
>> To post to this group, send email to django...@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/77018f70-2568-4a80-a6d1-c928c73617ef%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> "La utopía sirve para caminar" Fernando Birri
>
>
>

-- 
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/2be5f092-8b0b-4b1c-adf2-a602854f8a05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Security News?

2015-08-18 Thread François Schiettecatte
+1 on this.

And I also follow http://arstechnica.com, they are usually pretty quick.

François

> On Aug 18, 2015, at 5:30 PM, Shawn Milochik  wrote:
> 
> I've been using this source for over 10 years:
> https://www.grc.com/securitynow.htm
> 
> Main page: https://twit.tv/shows/security-now
> 
> 
> 
> -- 
> 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/CAOzwKwFM8Lo_16S%3D6so7j%2BfFFMGSMvHhh7mR0ggMyuEUn-1DbQ%40mail.gmail.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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/E2A172E9-3CD3-461A-B6D9-61F167E4F5BD%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Security News?

2015-08-18 Thread Aaron C. de Bruyn
Er...I totally spaced another bullet point:

* Security list for the application(s) you are using (i.e. django-security)

-A

On Tue, Aug 18, 2015 at 2:29 PM, Aaron C. de Bruyn  wrote:
> I personally follow a few:
> * The security mailing list for the distos I use (mainly ubuntu-security)
> * FullDisclosure mailing list
> * Slashdot ;)
> * SoylentNews
> * Listen to TechSNAP on Fridays (http://www.jupiterbroadcasting.com/)
>
> If you're really hard-core you can get the CVE feeds:
> https://cve.mitre.org/cve/data_updates.html
>
> Hope that helps.
>
> -A
>
>
> On Tue, Aug 18, 2015 at 12:57 PM, Nikolas Stevenson-Molnar
>  wrote:
>> A question for server admins: how do you stay on top of important security
>> news (e.g., 0-day exploits like Heartbleed, Shellshock, GHOST, etc.)? Do you
>> use feeds, listserves, blogs, Google alerts, Twitter, or some combination
>> thereof?
>>
>> Just curious to see how others handle this. Personally, I use a combination
>> of lists, blogs, and Google alerts. But the alerts have an inherent delay,
>> and I have to remember to check the others.
>>
>> Thanks,
>> _Nik
>>
>> --
>> 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/55D38E33.4060502%40consbio.org.
>> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEE%2BrGogK7SimwgCCQ53D1cXMS4k1kU%3D%3DosskCaFfy7gCt9-aw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Security News?

2015-08-18 Thread Shawn Milochik
I've been using this source for over 10 years:
https://www.grc.com/securitynow.htm

Main page: https://twit.tv/shows/security-now

-- 
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/CAOzwKwFM8Lo_16S%3D6so7j%2BfFFMGSMvHhh7mR0ggMyuEUn-1DbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Security News?

2015-08-18 Thread Aaron C. de Bruyn
I personally follow a few:
* The security mailing list for the distos I use (mainly ubuntu-security)
* FullDisclosure mailing list
* Slashdot ;)
* SoylentNews
* Listen to TechSNAP on Fridays (http://www.jupiterbroadcasting.com/)

If you're really hard-core you can get the CVE feeds:
https://cve.mitre.org/cve/data_updates.html

Hope that helps.

-A


On Tue, Aug 18, 2015 at 12:57 PM, Nikolas Stevenson-Molnar
 wrote:
> A question for server admins: how do you stay on top of important security
> news (e.g., 0-day exploits like Heartbleed, Shellshock, GHOST, etc.)? Do you
> use feeds, listserves, blogs, Google alerts, Twitter, or some combination
> thereof?
>
> Just curious to see how others handle this. Personally, I use a combination
> of lists, blogs, and Google alerts. But the alerts have an inherent delay,
> and I have to remember to check the others.
>
> Thanks,
> _Nik
>
> --
> 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/55D38E33.4060502%40consbio.org.
> 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEE%2BrGrq8ycaNcDxST74yaHpKE4PC9jYmfOBbzuWfNnEgSMY0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Security News?

2015-08-18 Thread Nikolas Stevenson-Molnar
A question for server admins: how do you stay on top of important 
security news (e.g., 0-day exploits like Heartbleed, Shellshock, GHOST, 
etc.)? Do you use feeds, listserves, blogs, Google alerts, Twitter, or 
some combination thereof?


Just curious to see how others handle this. Personally, I use a 
combination of lists, blogs, and Google alerts. But the alerts have an 
inherent delay, and I have to remember to check the others.


Thanks,
_Nik

--
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/55D38E33.4060502%40consbio.org.
For more options, visit https://groups.google.com/d/optout.


Re: Web Client

2015-08-18 Thread James Schneider
There is no such thing as a Django web client. Are you talking about
building a client application that communicates with another back end that
already exists (or that you are implementing in parallel)? Django is a
framework designed to facilitate an application acting as a back end,
providing services via HTTP requests from other clients, usually web
browsers. If you are thinking of implementing a Java or WP core as the back
end, I would suggest you look at Django for that role instead.

If you have questions about the capabilities of the framework, I recommend
you spend some time completing the tutorial and reading through the
documentation so that you can determine whether or not Django will fit your
needs.

https://docs.djangoproject.com/en/1.8/intro/tutorial01/

-James

On Tue, Aug 18, 2015 at 11:19 AM,  wrote:

> Hi Everyone:
>
> I want to develop a Django web client and either a Java API (JSON) or Word
> Press WP Core on the backend server.
>
> Is this project feasible, and if so what are this Group’s recommendations?
>
>
> Regards,
> Hal
>
> Sent from Surface
>
> --
> 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/55d3788b.2491420a.9e40.25ff%40mx.google.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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciUi%2BiSfnc_bDaOAADaN%2B%2Bj7Li76OK4szv93jjSit026bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Job] Bioinformatics Software Engineer at UPMC, Pittsburgh, PA

2015-08-18 Thread Keith Callenberg
Hello Django users!

I work for a clinical lab within a large hospital system that is striving 
to improve cancer diagnosis and prognosis. I am looking for a full-time 
developer/devop to join our team working on a Python/Django-based app for 
analysis and management of large-scale next generation DNA sequencing data. 
This is clinical work for real patients, not just research, so there is 
high potential for making a positive impact in people's lives. We have a 
lot of interesting automation and engineering challenges, and a lot of 
flexibility to choose the best tools for each job.

Here are some keywords to describe our stack: Django, Linux, git, Oracle, 
Docker, Fabric, reportlab, Nagios

Here are some more details about the job and what we're looking for:
http://www.linkedin.com/jobs2/view/67436760

We are currently looking for on-site, full-time only. Please post here or 
message me directly if you have any questions.

Thank you,
Keith Callenberg
Lead Bioinformatics Scientist
Division of Molecular & Genomic Pathology
UPMC

-- 
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/c7c3d055-8d54-45d3-8b6b-d7ed1273a0cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Web Client

2015-08-18 Thread ltc.hotspot
Hi Everyone:


I want to develop a Django web client and either a Java API (JSON) or Word 
Press WP Core on the backend server.


Is this project feasible, and if so what are this Group’s recommendations?



Regards,

Hal






Sent from Surface

-- 
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/55d3788b.2491420a.9e40.25ff%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.


[ANNOUNCE] Django security releases issued (1.4.22, 1.7.10, and 1.8.4)

2015-08-18 Thread Tim Graham
Today the Django team issued multiple releases -- Django 1.4.22, 1.7.10, 
and 1.8.4 -- as part of our security process. These releases address a 
security issue, and we encourage all users to upgrade as soon as possible.

More details can be found on our blog:

https://www.djangoproject.com/weblog/2015/aug/18/security-releases/

As a reminder, we ask that potential security issues be reported via 
private email to secur...@djangoproject.com, and not via Django's Trac 
instance or the django-developers list. Please see 
https://www.djangoproject.com/security for further information.

-- 
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/6c342aff-6a1f-4c6b-b3d0-ff8327c668de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Static version of a Django website ?

2015-08-18 Thread Luis Zárate
Do you need to do a backup ? (HTTrack , or wget
recursive)

or you need to migrate to other site? (make a backup from source and
database )

you maybe need to collect structed data from the old site, so scrapy (
http://scrapy.org/) can help.

2015-08-14 8:49 GMT-06:00 Stefano Probst :

> Hi,
>
> i only know a generic way via HTTrack . If you
> want a copy of the rendered HTML.
>
> --
> 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/1f00c270-cff0-4a2d-8662-4561baa9547c%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyOLHXNyiZKm4GvAkQyvYyQnuLAMGiTHuAkAmdUat-b8DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Efficient Large Binary File Streaming

2015-08-18 Thread Luis Zárate
Did you look here https://www.djangopackages.com/grids/g/charts/ ?

2015-08-16 18:25 GMT-06:00 kanav002 :

> This is my first week using Django and version 1.8 in particular. I'm
> trying to figure out the best way to stream a raw, large, continuously
> growing binary file to a plotting function that is continuously updating
> the last 600 bytes of the binary file. This is primarily a client side
> application. I have seen many streaming snippets and the
> StreamingHttpResponse module but am not sure which streaming method will be
> optimal. I'm also not sure if streaming methods are the correct approach.
> Can I just read the file with Python and plot in a browser window? 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/77018f70-2568-4a80-a6d1-c928c73617ef%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyO-cWTS0tLgOaz_JVBe2ZWYN_RW9ayFGYpw6W0hbAepsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to insert recent session Username or UserId in database table in Django?

2015-08-18 Thread Luis Zárate
You need to make a foreignkey to a user.

if you have a custom user look here
https://docs.djangoproject.com/en/1.8/topics/auth/customizing/#referencing-the-user-model

but if it is a simple django authentication use

import django.contrib.auth.models import User
class Product(models.Model):
  user = models.ForeignKey(User)

Remember in the view you can access to the current user with
request.user  and the full user name is accessible calling
request.user.get_full_name()


2015-08-17 23:34 GMT-06:00 Remaze Vs :

> I am new in Django, I am trying to make ecommerce  project. I want to
> Insert recent login username or user Id in database by using formview
> code.so how to insert recent login username in database?
>
> Here is Model.py
>
> class Product(models.Model):
>
>
> title = models.CharField(max_length=120)
> description = models.TextField(null=True, blank=True)
> category = models.ManyToManyField(Category, null=True, blank=True)
> price = models.DecimalField(decimal_places=2, max_digits=100,
> default=29.99)
> sale_price = models.DecimalField(decimal_places=2, max_digits=100,\
> null=True, blank=True)
> slug = models.SlugField(unique=True)
> timestamp = models.DateTimeField(auto_now_add=True, auto_now=False)
> updated = models.DateTimeField(auto_now_add=False, auto_now=True)
> active = models.BooleanField(default=True)
> update_defaults = models.BooleanField(default=False)
> username = ?
>
>
> Here view.py
>
>  class DealsForm(ModelForm):
>
> class Meta:
> model = Product
> fields =
> ['title','description','category','price','sale_price','slug','active','update_defaults','username']
>
>
> I want to add Last field username insert in database but how ...?
>
>
>
>
>
>
>
>
> --
> 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/76b28224-3259-460d-9e6f-8e830a5c03ad%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyOR6rRTrKpX7HnX6Pz-G94fJN-uJWUcKzaRS8_jOx7_Rg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: modelcluster

2015-08-18 Thread Luis Zárate
This sounds like

$ pip install django-modelcluster

and maybe put it in the settings file

INSTALLED_APPS = (
...
"modelcluster",
...
)

This is the repository https://github.com/torchbox/django-modelcluster. it
is in github so you can make an issue because this project needs
documentation.



-- 
"La utopía sirve para caminar" Fernando Birri

-- 
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/CAG%2B5VyPyVnsvRRKt8fkgnwwfD-RCRm0GVM1Ln-4LOvFLMcSrmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: folder created by django startproject is empty

2015-08-18 Thread Arindam sarkar
1.7.9 is quite old version as on date . Current stable version is 1.8.3
.get the latest one .

On Tue, Aug 18, 2015 at 7:28 PM, AAKASH GOYAL  wrote:

> Hi Guys,
>
> I am new to Django and installed it using the steps mentioned in
> http://www.djangobook.com/en/2.0/chapter02.html
> 
> After installation, when i did -> django-admin.py
> 
> startproject trial2, it created the folder trial2 but no files created
> inside it.
> I tried to google but not able to find solution.
>
> Output of django-admin.py
> 
> --version  is 1.7.9.
>
> Can anyone please help me out?
>
> Regards,
> Aakash
>
> --
> 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/36238ff9-6201-4ddc-9026-f74fc6846029%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout
> 
> .
>



-- 
Regards,

Arindam

Contact no. 08732822385

-- 
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/CAGnF%2BrBGbrCG0fvFW4Pw02hEqe92V_EBT3m-KRjgGpkqpM6yCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


folder created by django startproject is empty

2015-08-18 Thread AAKASH GOYAL
Hi Guys,

I am new to Django and installed it using the steps mentioned 
in http://www.djangobook.com/en/2.0/chapter02.html
After installation, when i did -> django-admin.py startproject trial2, it 
created the folder trial2 but no files created inside it.
I tried to google but not able to find solution.

Output of django-admin.py --version  is 1.7.9.

Can anyone please help me out?

Regards,
Aakash

-- 
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/36238ff9-6201-4ddc-9026-f74fc6846029%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: User and Permission from admin to the app

2015-08-18 Thread Russell Keith-Magee
Hi Predator,

Permission checks need to be manually added to each view, on a case-by-case
basis. Django can't "interpret" what your view is trying to do - all user
views look the same to Django - so you need to provide the extra
information to describe which permissions are needed at any given part in a
view.

For example, you might require "View" permissions to GET a particular view,
but require a Change permission (or multiple change permissions, if you're
modifying multiple objects, or even a custom permission) to POST to the
same view.

The easiest way to do this is to put the @permission_required decorator on
a view:

https://docs.djangoproject.com/en/1.8/topics/auth/default/#the-permission-required-decorator

However, you can also use user.has_perm('foo.add_bar') method inside a view
(returning a 404 or 403 if the test fails) if you need a more fine-grained
approach.

Yours,
Russ Magee %-)

On Thu, Aug 13, 2015 at 10:24 AM, Predator  wrote:

> Hi there!
>
> I have a question regarding user permissions.
>
> How can I use the user permissions that I have set in the admin to my
> django app?
>
> For example, I have a user* 'Trainee'* and in django admin, I set
> *'Trainee'* to only add to my model. So, 'Trainee' can only add to this
> model, not change and delete it. When I logged in to* my app*, I can
> still delete and change. I may be missing some vital points and I hope
> someone can point me to the right direction.
>
> Thanks and have a great day!
>
> --
> 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/d64cc98d-40c7-43b1-aecc-25fc7a1d752c%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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJxq8495Ds_gQ%3DOkraOuE%3D5LrVBjE%2B%3D1um32HBxAHLPtBS6FXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: is there anybody who test this django mongodb engine ?

2015-08-18 Thread Russell Keith-Magee
On Tue, Aug 18, 2015 at 3:31 AM, MahdiX  wrote:

> Hi folks
> I just start learning and using mongoDB , it's looks like a really nice
> replacement for mysql.
>

If you're judging relational databases by comparing to MySQL, you're really
not doing a fair comparison. MySQL is a *really* bad database. Before you
write off relational databases, you might want to do some research into
PostgreSQL.

Also, before you commit to MongoDB, might I suggest you look into the many
people with horror stories and cautionary tales about MongoDB:

http://www.sarahmei.com/blog/2013/11/11/why-you-should-never-use-mongodb/
http://www.quora.com/How-much-credibility-does-the-post-Dont-use-MongoDB-have
http://cryto.net/~joepie91/blog/2015/07/19/why-you-should-never-ever-ever-use-mongodb/

... and the people who have demonstrated that PostgreSQL is faster than
MongoDB *at the types of problems that MongoDB is supposed to solve*.

http://www.enterprisedb.com/postgres-plus-edb-blog/marc-linster/postgres-outperforms-mongodb-and-ushers-new-developer-reality


> I was searching for 3rd party for using Mongo with django and I ends up
> with django-mongodb-engine.
> Has anybody test it?
> I'm looking for personal experiences
>

I haven't used it myself, but from what I'm aware of, if you *must* use
MongoDB, it's the best Django option out there at present.

Yours,
Russ Magee %-)

-- 
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/CAJxq848scaBYTZLD5AAhV%3DeOYVN_nY7JpbuzH%2BmZFn%3DQgx1ENQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to insert recent session Username or UserId in database table in Django?

2015-08-18 Thread Remaze Vs
I am new in Django, I am trying to make ecommerce  project. I want to 
Insert recent login username or user Id in database by using formview 
code.so how to insert recent login username in database?

Here is Model.py 

class Product(models.Model):


title = models.CharField(max_length=120)
description = models.TextField(null=True, blank=True)
category = models.ManyToManyField(Category, null=True, blank=True)
price = models.DecimalField(decimal_places=2, max_digits=100, default=29.99)
sale_price = models.DecimalField(decimal_places=2, max_digits=100,\
null=True, blank=True)
slug = models.SlugField(unique=True)
timestamp = models.DateTimeField(auto_now_add=True, auto_now=False)
updated = models.DateTimeField(auto_now_add=False, auto_now=True)
active = models.BooleanField(default=True)
update_defaults = models.BooleanField(default=False)
username = ?


Here view.py
 
 class DealsForm(ModelForm):
   
class Meta:
model = Product
fields = 
['title','description','category','price','sale_price','slug','active','update_defaults','username']


I want to add Last field username insert in database but how ...?


   
 




-- 
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/76b28224-3259-460d-9e6f-8e830a5c03ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Strip ArrayField input from admin

2015-08-18 Thread Erik Cederstrand
Hi list

I have a model with a field defined like this:

   categories = ArrayField(models.CharField(max_length=32))


This field is accessible via the admin interface, and when I enter 
comma-separated values in the charfield, they are stored as an array in the DB.

However, I just discovered that if I enter comma+space separated values, e.g. 
"teachers, locations, students", it gets converted to ['teachers', ' 
locations', ' students'] which is not what I want. How go I get the ArrayField 
to strip the values after splitting by comma?

Thanks,
Erik

-- 
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/5CFD8C84-1159-411E-B375-77FB835B9048%40cederstrand.dk.
For more options, visit https://groups.google.com/d/optout.


Django REST Framework : Serializer field level validation of OneToOne fields

2015-08-18 Thread Ankit Agrawal
The code corresponding to my query is rather big hence I posted it on Stack 
Overflow - 
http://stackoverflow.com/questions/32063427/django-rest-framework-serializer-field-level-validation-of-onetoone-fields

-- 
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/5fbb50b5-d3ca-4356-8f5a-7d979d4852ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help in Django Task

2015-08-18 Thread Jani Tiainen
Hi,

How much you pay for this work? :)

Sorry, you really have to do your homework...

On Mon, 17 Aug 2015 12:06:51 -0700 (PDT)
conticki  wrote:

> Task to be done in Django 
> 
> Table structure:
> 
>- Movies
>   - id
>   - Title
>   - Description
>   - Featured image
>   - Movie length (in minutes)
>   - Movie release date
>
> Example:
> 
> 1 | Jurassic World | A movie about dinosaurs | 90 minutes | June 14 2015
> 2 | Kick | Salman Khan movie | 120 minutes | April 2014
> 
>- Category
>   - id
>   - Type
>   - Value
>
> 
> 1 | Language | English
> 2 | Genre | Action
> 3 | Language | Hindi
> 4 | Genre | Comedy
> 
> 
>- Relationship
>   - id
>   - Taxonomy id
>   - Movie id
>
> Example:
> 
> 1 | 1 | 1
> 2 | 1 | 2
> 3 | 2 | 3
> 4 | 2 | 4
> 
> 
> Create a list view of movies with pagination after 10 movies. 
> For pagination follow this approach. AJAX / Page Refresh  - your choice. 
> 
> 
>- Filter by language
>- Filter by Genre
>- Sort by Length
>- Sort by release date
> 
> Filter and sort need to work together. Filter and sort should continue to 
> work when I change page. For example refer 
> http://www.shortfilmwindow.com/movies/
> 
> Sort, filter and pagination need to be server side.
> 
> -- 
> 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/c31c4026-3efc-477e-b026-48e9e6364117%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


-- 
Jani Tiainen

-- 
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/20150818103804.55aa6f48%40jns42-l.w2k.keypro.fi.
For more options, visit https://groups.google.com/d/optout.