Cover photo
Απόστολος Βλαχόπουλος
Works at Rhombus Software Systems
Attends Aristotle University of Thessaloniki
Lives in Thessaloniki Greece, Θεσσαλονίκη Ελλάδα


Hello to the great community. I did an upgrade from 13.10 to 14.04 final beta, without fresh install. As expected it deactivated some of my ppa's but now i can't seem to be able to re-activate them. One of them is the ubuntu-sdk ppa which if I am not mistaken there is one for Trusty. It let's me choose it i enter password but it won't activate. How can I solve this?
Vincent Disco's profile photoΑπόστολος Βλαχόπουλος's profile photoMichał Prędotka's profile photo
Oh wait, this was for the SDK? Disregard my comment then (though you could always bet on multiple horses and try at as well).
Add a comment...
is it possible to add the already there admin functionality (like filtering, ordering,  the javascript calendar in datetime fields etc) in the front pages of a django project?
Απόστολος Βλαχόπουλος's profile photoThomas Weissel's profile photoRei Ayanami's profile photo

you can use the datetime widget in your frontend.. just edit the form to use the widget and add the files needed to your template..

also you could browse the source code of django - admin and have a look how they did it, then copy it to your own project
Add a comment...
suppose you have something like this. 
a url like   /teacher/add/ and url /student/add. And teacher and student are models in the same app. Is there a way to have one for both teacher and student?How would it work?
urlpatterns = patterns('',   
    url(r'^desknet/teacher/', include('app.urls')),
    url(r'^desknet/student/', include('app.urls')),

urlpatterns = patterns(' ', 
    url(r'^add/$ ', 'add_teacher_view')
    url(r'^add/$ ', 'add_student_view')

Obviously this one wouldn't work right? Is there a django way to make it work?Or is the only way to change the urls?
Mike Drawback's profile photoMi-e Foame's profile photoBryson Thornock's profile photoRobert Węglarek's profile photo
+Robert Węglarek +Mike Drawback Thank you too.. Will look into it...
Add a comment...
The qt Creator installed using ubuntu-sdk I installed doesn't contain the help docs of qt....Can i install them after installing ubuntu-sdk somehow?
Add a comment...
I want to override the save method of a model. 
I have a customer model and a project model. Project model has a propery model which is a ForeignKey to customer

class Project(models.Model):
      ........more properties........
      customer = models.ForeignKey(Customer)

I want to override the save method of the Project model so when a new project is created it should also change the value of a property of  customer. 

I tried this:
 def save(self, *args, **kwargs):
        self.customer.current_amount_owed += self.cost
        super(Project, self).save(*args, **kwargs)

for testing purposes but didn't work at all. It is not even called(i tried to print something from inside save and the message did not appear on the console)

Any suggestions or good reading?
Απόστολος Βλαχόπουλος's profile photoThomas Woolford's profile photoRaymond McGinlay's profile photo
you'd better of using the debug framework rather than print statements, then you could send your debug message to file, email  or whatever. Here's slightly old tutorial but looks ok. 
Add a comment...
Any help in this? There are some test picture links for testing in the comments
Add a comment...
Thought I might get some answers here. Basically I want to use SessionAuthentication with tastypie. But django uses csrf_token. Tastypie views won't provide me with one. How can I use a valid token to post data on tastypie views?
Απόστολος Βλαχόπουλος's profile photoAlexander Lapshin's profile photo
Yes i have seen this, but it uses basic authentication and authorization. I am using basic right now and everything works fine, but i need to use Django's (DjangoAuthorization, SessionAuthentication), so permissions will be set. But they need the csrftoken, which i don't know how to pass to tastypie views
Add a comment...
Απόστολος Βλαχόπουλος's profile photoTiziano Lattisi's profile photoStepan Prokipchyn's profile photo
With proxy models you could modify or extend your existing model without changing one. For example you can add sorting, filtering, add additional column or row, or even modify the data. Without changing your model class, but rather by wrapping it.

Check for details.
There are some sample proxy model implemented by Qt, but you will probably need to implement new
Add a comment...
I get this error when trying to launch either ubuntu or plain qt creator. It worked since the last updates. Any help? Ubuntu 12.10.

qtcreator: symbol lookup error: /usr/lib/i386-linux-gnu/qt5/plugins/platforms/ undefined symbol: _ZN15QPlatformWindow17formatWindowTitleERK7QStringS2
Απόστολος Βλαχόπουλος's profile photoJarek W's profile photoZane Swafford's profile photo
+J whatever....I won't even continue the conversation....
Add a comment...
Not trying to "fish" for advertisments...but could anyoneone suggest some webhosting that is veeeery django friendly?And i mean either installing django on the host or maybe like uploading your files after you have developed locally?
hari jayaram's profile photoSergey Russkih's profile photoLeo Trubach's profile photoMiguel Mendez's profile photo
Tons of Django-friendly web hosts listed at
Add a comment...
Bragging rights
Είμαι υπερήφανος που είμαι εγώ..και μετριόφρων...
  • Aristotle University of Thessaloniki
    Μ.Sc Θεωρητική Πληροφορική Θεωρία Συστημάτων και Ελέγχου, 2011 - present
  • Accounting Technological Educational Institute Of Thessaloniki, Λογιστική Τεχνολογικό Εκπαιδευτικό Ίδρυμα Θεσσαλονίκης
    1999 - 2004
  • Applied Informatics University of Macedonia(UoM) Thessaloniki, Εφηρμοσμένη Πληροφορική Πανεπιστήμο Μακεδονίας Θεσσαλονίκη
    2005 - 2011
  • Αρσάκειο Λύκειο Θεσσαλονίκης
    4η Δέσμη
  • Αρσάκειο Γυμνάσιο Θεσσαλονίκης
Basic Information
Python/Django webdeveloper
Python, django, javascript, ajax
  • Rhombus Software Systems
    Django Developer, 2013 - present
    Developing web apps using Django python and javascript.
  • Φροντιστήριο ΕΛΙΞ
    Καθηγητής ΑΕΠΠ Γ' Λυκείου, 2011 - present
  • Συμμετρο Φροντιστήριο
    Καθηγητής ΑΕΠΠ Γ' Λυκείου, 2005 - 2006
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Thessaloniki Greece, Θεσσαλονίκη Ελλάδα
Πολύ καλό φαγητό καλη μπύρα ωραια ατμόσφαιρα...
Public - a year ago
reviewed a year ago
1 review