| |||||
| Auteur | Sujet : blabla@django |
|---|---|
masklinn í dag viðrar vel til loftárása | Reprise du message précédent :
J'ai toujours pensé que char/varchar pouvait être plus efficace pq tu stockes des records en fixed-length alors qu'avec text t'as (potentiellement) une indirection, mais si c'est pas le cas (pour postgres et sqlite, les autres je m'en bat) en fait c'est se faire chier pour rien, text FTW. Message cité 1 fois Message édité par masklinn le 16-08-2011 à 17:38:55 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Publicité | Posté le 16-08-2011 à 17:37:32 ![]() ![]() |
masklinn í dag viðrar vel til loftárása |
Je note également, il semble possible d'utiliser character varying (et ptet aussi varchar) sans donner une taille, en tout cas dans postgres (et sqlite, qui regarde juste si t'as "text", "char" ou "clob" dans ton type il se pose même pas la question de la spec taille). Je sais pas ce que ça donne ailleurs.
Message édité par masklinn le 16-08-2011 à 17:42:16 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
nraynaud lol |
--------------- trainoo.com, c'est fini |
masklinn í dag viðrar vel til loftárása |
Cf doc:
Message cité 1 fois Message édité par masklinn le 16-08-2011 à 17:50:59 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
nraynaud lol |
--------------- trainoo.com, c'est fini |
masklinn í dag viðrar vel til loftárása |
Par contre tu peux avoir des problèmes d'index, je te préviens tout de suite, dans postgres b-tree pête si les champs sont trop grands, faut passer à un autre type d'index (genre hash). Message édité par masklinn le 16-08-2011 à 17:59:44 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
nraynaud lol | ok, merci --------------- trainoo.com, c'est fini |
Publicité | Posté le 16-08-2011 à 18:14:52 ![]() ![]() |
nraynaud lol | c'était plus pour l'atomicité du changement en fait. --------------- trainoo.com, c'est fini |
nraynaud lol |
--------------- trainoo.com, c'est fini |
nraynaud lol | y'a pas d'exception pour le 403 ? --------------- trainoo.com, c'est fini |
nraynaud lol | dites, c'est moi ou y'a pas le paramètre "next" dans le AuthenticationForm par défaut ? --------------- trainoo.com, c'est fini |
SekYo | Des news sur le passage à Python 3 :
|
masklinn í dag viðrar vel til loftárása | Pour ceuxe qui utilisent les forms django mais ont besoin de plus de contrôle sur le rendu précis: floppyforms.
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
nraynaud lol | hep, y'a un endroit "django-esque" pour mettre les décorateurs de vue ? --------------- trainoo.com, c'est fini |
SekYo | Pas à ma connaissance. |
masklinn í dag viðrar vel til loftárása | Guide assez complet sur les fields et widgets custom dans les forms django:
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Remigio Radio Flip, 72.8 |
--------------- Everybody can succeed, all you need is to believe |
Dj YeLL $question = $to_be || !$to_be; | Drap' --------------- Gamertag: CoteBlack YeLL |
nraynaud lol | quelqu'un a déjà joué avec un système noSQL orienté document et django ?
--------------- trainoo.com, c'est fini |
SekYo | Les Generic Views sur Django, vous les utilisez un peu, beaucoup, pas du tout ?
|
nraynaud lol | moi je les utilise un peu, mais souvent complètement custo. --------------- trainoo.com, c'est fini |
Remigio Radio Flip, 72.8 | Tu parles des class based views ?
--------------- Everybody can succeed, all you need is to believe |
SekYo | Je parle de ça : https://docs.djangoproject.com/en/1 [...] sed-views/ oui |
Remigio Radio Flip, 72.8 | Oui oui, j'avais cru lire qu'il était recommandé de ne plus passer par des fonctions. Comme je suis discipliné et qu'après toutes ces années de programmation, j'ai appris qu'il était bon de suivre les évolutions et ne pas rester sur "ce qui marche" et "qui fait très bien ce que j'ai envie de faire", ben je me force avec les Class Based View. C'est franchement pas mal d'un certain point de vu. Mais c'est sur que pour un code simple avec un seul développeur, ça peut être assez lourd et chiant. Message édité par Remigio le 07-10-2011 à 14:44:12 --------------- Everybody can succeed, all you need is to believe |
nraynaud lol | dites, comment je peux affecter un fichier déjà sur le serveur à un FileField ?
--------------- trainoo.com, c'est fini |
Dj YeLL $question = $to_be || !$to_be; | Hello,
--------------- Gamertag: CoteBlack YeLL |
Dj YeLL $question = $to_be || !$to_be; | Pour la suite j'imagine un truc du genre :
--------------- Gamertag: CoteBlack YeLL |
Dj YeLL $question = $to_be || !$to_be; |
--------------- Gamertag: CoteBlack YeLL |
masklinn í dag viðrar vel til loftárása | Alex Gaynor: Why I hate the Django ORM (slides only) Message édité par masklinn le 13-01-2012 à 11:18:45 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
SekYo | Je pense que ces remarques sont venues à toutes personnes ayant utilisé Django et son ORM pour faire une appli un peu plus évoluée qu'un blog. Faire un SELECT SUM/MIN/MAX .... GROUP BY c'est juste pas intuitif du tout la syntaxe de l'ORM |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 13-01-2012 à 12:18:31 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
nraynaud lol | dites, actuellement, j'ai des virtualHosts PHP configurés comme ça :
--------------- trainoo.com, c'est fini |
Remigio Radio Flip, 72.8 | Exemple d'un vhost wsgi à moi si ça peut t'aider :
--------------- Everybody can succeed, all you need is to believe |
nraynaud lol |
--------------- trainoo.com, c'est fini |
nraynaud lol | attention, c'est super-débile :
--------------- trainoo.com, c'est fini |
Publicité | Posté le ![]() ![]() |

| Sujets relatifs | |
|---|---|
| Blabla@Progue | [Topic unique] .Net @ Prog |
| Page Jsp qui affiche le ${ blabla } | case in blabla (KSH) ===> fichier CSV |
| BlaBla@SQL | Problème de configuration MySQL sur Django |
| Suivant / Précédant dans appli js (non c'est pas history.blabla ...) | Blabla@Python \o/ |
| SBP: le Système d'unités de Blabla@Prog | |
| Plus de sujets relatifs à : blabla@django | |





