GithubHelp home page GithubHelp logo

rremizov / django-random-queryset Goto Github PK

View Code? Open in Web Editor NEW
23.0 2.0 5.0 428 KB

Pull random records using Django ORM.

License: MIT License

Python 96.55% Makefile 3.45%
python django random queryset

django-random-queryset's Introduction

Hi there ๐Ÿ‘‹

I'm Roman, a Full-Stack Software Engineer!

My Toolbelt

  • Python, Go, Clojure, JavaScript, TypeScript, Solidity.
  • Django, ReactJS, Phaser.
  • Nginx, uWSGI.
  • PostgreSQL, Redis.
  • Debian GNU/Linux, Ansible, Terraform, Docker Swarm.

Contacts

django-random-queryset's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar rremizov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

django-random-queryset's Issues

Why is Postgres a requirement?

Hello,

nice library :D but i would like to use it against my MySQL /Galera cluster. Why is postgres a requirment as you have writtin at the README.me?

Kind regards

Problem with compatibility mac

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/cd/k7vb8v3n3j3dc_0xzljwgb5c0000gn/T/pip-install-yyurzpve/psycopg2/
please in requirement update psycopg2==2.5.4 to psycopg2==2.7.5

"error: 'QuerySet' object has no attribute 'random'"

hi,
if i use filter than i can get "'QuerySet' object has no attribute 'random" error.

queryset = models.Visitor.objects.filter(user_id__in=ids)
queryset.random() # to get one random record

if use queryset = models.Visitor.objects.random(1) its working fine but i want filter also..

Please tell me how to resolve this

thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.