-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi guys,
Ok, here goes a very strange problem...
Our team is using cakephp to develop a large application. Everything session related is working properly so far. The only issues we've had so far are related to iframes and opening windows in other subdomains. I'll explain:
User opens up site…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi all,
I am having this problem with one of my cakePHP applications. My application displays a big html table on the page. I noticed that when the table goes beyond a certain size limit, IE cannot display that page. While trying to figure out why this happens, I noticed that my html response…
>>> More
-
as seen on Server Fault
- Search for 'Server Fault'
I've placed the CakePHP files in a directory in /home/user/public_html/cakephp. When I try to reach localhost/~user/cakephp with my browser, there's an error message. In my case, since I'm using Chrome, it is 'Oops! This link appears to be broken.".
Looking for a solution on Google, I found a few…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have the following models in CakePHP:
A Deposit belongs to an Account
An Account belongs to a Customer
I want to have a list of Deposits, and I need to show the name of the customer (so I have to join through the Customer). I also need to paginate this list.
If I set Deposit->recursive = 2…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I developed small CakePHP application, and now I want to add one more table (in fact, model/controller/view) into system, named notes. I had already created a table of course.
But when I run command cake bake model, I do not get table Notes on the list. I can add it manually, but after that I get…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i have some csv data and i want to export into django models the example of csv data
1;"02-01-101101";"Worm Gear HRF 50";"Ratio 1 : 10";"input shaft, output shaft, direction A, color dark green";
2;"02-01-101102";"Worm Gear HRF 50";"Ratio 1 : 20";"input shaft, output shaft, direction A, color dark…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Like in this question, except I want to be able to have querysets that return a mixed body of objects:
>>> Product.objects.all()
[<SimpleProduct: ...>, <OtherProduct: ...>, <BlueProduct: ...>, ...]
I figured out that I can't just set Product.Meta.abstract to true or otherwise…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have an object:
POP_CULTURE_TYPES = (
('SG','Song'),
('MV', 'Movie'),
('GM', 'Game'),
('TV', 'TV'),
)
class Pop_Culture(models.Model):
name = models.CharField(max_length=30, unique=True)
type = models.CharField(max_length=2, choices = POP_CULTURE_TYPES, blank=True,…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Given a reference app ( called guide), how can I create additional apps that will reuse the same model/admin/views than guide - the motivation behind is to be able to individually control each subapp.
guide
guideApp1
exact same models/admin/views than guide
guideApp2
exact same models/admin/views…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to use unique hashes for each model rather than ids.
I implemented the following function to use it across the board easily.
import random,hashlib
from base64 import urlsafe_b64encode
def set_unique_random_value(model_object,field_name='hash_uuid',length=5,use_sha=True,urlencode=False):
…
>>> More